xml数据解析并显示在UITableview上
请任何人帮助我。我想将 xml 数据的特定属性及其值显示到 UItableView 中。但我不知道我该怎么做。我解析 xml 数据没有问题,而且我已经在控制台中完成了它,但我无法使用特定属性名称和值在 UITableview 或任何 UIView 中显示这些数据xml 的属性...这是我的 xml 数据...
`
<list>
<ProductData HASH="1892201664">
<id>1</id>
<productNumber>a91cc0f4c7</productNumber>
<name>Product 1</name>
<seoTitle>product-1</seoTitle>
<viewCount>0</viewCount>
<availableStock>100.0</availableStock>
<lowStock>0.0</lowStock>
<image>5e928bbae358c93caedf6115fa7d178b.jpg</image>
<basePrice>10.0</basePrice>
<costPrice>0.0</costPrice>
<height>1.0</height>
<width>1.0</width>
<depth>1.0</depth>
<weight>2.0</weight>
<status>A</status>
<quantityOrderMin>1.0</quantityOrderMin>
<productIsCall>false</productIsCall>
<quantityOrderMax>20.0</quantityOrderMax>
<orderCount>0</orderCount>
<sortOrder>1</sortOrder>
<isFreeShipping>false</isFreeShipping>
<productIsFree>false</productIsFree>
<isDeleted>false</isDeleted>
<priceByAttribute>false</priceByAttribute>
<dateCreated>2011-10-06T16:08:45</dateCreated>
<dateUpdated>2011-10-06T10:08:45</dateUpdated>
<isDummy>true</isDummy>
<isInventory>false</isInventory>
</ProductData>`
请帮助我。我遇到了严重的麻烦。如果有人可以,请发送源代码。
提前致谢。
Please anybody help me. i want to display the particular attribute and its value of xml data into an UItableView. but i do not know how can i do that.i have no problem to parse the xml data and already i have done it in console but i am becoming unable to display these data in UITableview or any UIView using particular attribute name and value of the attribute from xml...Here is my xml data...
`
<list>
<ProductData HASH="1892201664">
<id>1</id>
<productNumber>a91cc0f4c7</productNumber>
<name>Product 1</name>
<seoTitle>product-1</seoTitle>
<viewCount>0</viewCount>
<availableStock>100.0</availableStock>
<lowStock>0.0</lowStock>
<image>5e928bbae358c93caedf6115fa7d178b.jpg</image>
<basePrice>10.0</basePrice>
<costPrice>0.0</costPrice>
<height>1.0</height>
<width>1.0</width>
<depth>1.0</depth>
<weight>2.0</weight>
<status>A</status>
<quantityOrderMin>1.0</quantityOrderMin>
<productIsCall>false</productIsCall>
<quantityOrderMax>20.0</quantityOrderMax>
<orderCount>0</orderCount>
<sortOrder>1</sortOrder>
<isFreeShipping>false</isFreeShipping>
<productIsFree>false</productIsFree>
<isDeleted>false</isDeleted>
<priceByAttribute>false</priceByAttribute>
<dateCreated>2011-10-06T16:08:45</dateCreated>
<dateUpdated>2011-10-06T10:08:45</dateUpdated>
<isDummy>true</isDummy>
<isInventory>false</isInventory>
</ProductData>`
Please help me.i am in serious trouble.if anybody can please send source code.
Thanks in Advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)