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. Please help me
Thanks
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. Please help me
Thanks
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).
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
Check out http://www.tbxml.co.uk for a super-fast, lightweight, easy to use XML parser!