开发者

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>
  <El开发者_运维技巧ementObject>
    <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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜