Parsing XML in iPhone [closed]

2019-01-06 22:15发布

hi I am new to iphone development. I need to parse simple XML coming from my webserver and store this in database. Is there any sample code for doing the same?

6条回答
倾城 Initia
2楼-- · 2019-01-06 22:48

Check out http://www.tbxml.co.uk for a super-fast, lightweight, easy to use XML parser!

查看更多
该账号已被封号
3楼-- · 2019-01-06 22:50

you can check here ,might be it will help you. http://homepages.ius.edu/rwisman/C490/html/nsxmlparser.html

查看更多
做自己的国王
5楼-- · 2019-01-06 23:06

Apple has two built in solutions for parsing XML data on the iphone:

1) Apple has an objective-c implementation of an XML parser called NSXMLParser. See documentation here.

2) Apple also has a C based implementation of an XML parser called libXML2. See documentation here. - scroll down to see section on XML support

查看更多
时光不老,我们不散
6楼-- · 2019-01-06 23:08

Please have a look at Touch XML, a Objective-C framework for reading and writing XML. It's usage is similar (drop-in replacement) for Apple's NSXMLDocument (which is not available for the iPhone SDK).

查看更多
The star\"
7楼-- · 2019-01-06 23:12

The above mentioned Touch XML, seems to be discountinued. KissXML is an alternative. It is based on Touch XML, but has more features.

GDataXML could also be an alternative, its developed by Google.

查看更多
登录 后发表回答