iOS dev
iOS dev

Reputation: 470

How to generate an XML document in iOS using objective-c

I want to generate an XML document in iOS. My primary goal is to generate it using inbuilt classes/libraries. I researched a lot and I found that NSXMLElement, NSXMLDocument etc are used to generate XML in OS X but not in iOS (correct me if I'm wrong about this). I found some of the third party libraries like GDataXML, APXML etc which generates the XMLDocument as per my needs. But, I'm trying hard to achieve the same using inbuilt classes (if any). BTW, I do not want the strings to be appended manually to create XML.

I'm not expecting a complete code which does the generation. Any help/suggestion on any inbuilt classes would be appreciated.

Thanks in advance.

Upvotes: 2

Views: 1422

Answers (1)

Lou Franco
Lou Franco

Reputation: 89232

You're right -- you need to look for a 3rd party solution for XML writing in iOS. For parsing, there is NSXMLParser.

Upvotes: 1

Related Questions