English 中文(简体)
Example of ASIHTTPRequest with TouchXML
原标题:

I am currently using NSXMLParser mathods to parse my data something like this : But I found some good option as TouchXML .

I googled for some good example or tutorial

But I can t understand the XPathquery format and the parsing loops as done in this example

or this question

I just want to know how to parse a simple xml document like this :

<ElementsArray>
  <ElementObject>
    <element1></element1>
    <element2></element1>
  <ElementObject>
. 
.
.
<ElementArray>

so can anyone give me example code or a link will also be useful.

最佳回答

The coolest part of using TouchXML is that you can use the Apple documentation for NSXML and simply replace the NS with C. So an NSXMLDocument is a CXMLDocument and an NSXMLNode is a CXMLNode, and so on. Just look at the Tree-Based XML Programming Guide from Apple for sample code and you should get a pretty good idea of how to use TouchXML with your XML documents. The section Querying an XML Document should give you what you need to use XPath effectively.

问题回答

暂无回答




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签