2

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.

iOS dev
  • 470
  • 7
  • 23

1 Answers1

1

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

Lou Franco
  • 87,846
  • 14
  • 132
  • 192
  • Mustache (https://github.com/groue/GRMustache) is very beautiful 3rd party solution for generate xml from template (template can also be use from android). – ajjnix Feb 19 '16 at 05:35
  • Yeah it looks good and I think I've to finally rely on third party solution. I don't know why apple has not created one. – iOS dev Feb 19 '16 at 17:30