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?
相关问题
- Illegal to have multiple roots (start tag in epilo
- Correctly parse PDF paragraphs with Python
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
相关文章
- Creating XML Elements without namespace declaratio
- Get Attribute Value From Simple XML Using JQuery /
- Could I create “Call” button in HTML 5 IPhone appl
- How do I get from a type to the TryParse method?
- Unable to process app at this time due to a genera
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Directly signing an Office Word document using XML
Check out http://www.tbxml.co.uk for a super-fast, lightweight, easy to use XML parser!
you can check here ,might be it will help you. http://homepages.ius.edu/rwisman/C490/html/nsxmlparser.html
At the end of the article you can find a full project example.
http://www.hivestudio.cat/index.php?option=com_content&view=article&id=60:xml-parser-for-iphone&catid=35:technical-note-category&Itemid=76
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
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 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.