Sunday, 15 February 2015

Create XML file dynamically in Iphone -


I want to dynamically create an XML file for my iphone application.

Thanks

Glory

/ Div >

Try open source:

  • Written in Objective-C, a single H
  • Example:

      // Serializer XMLWriter allocate  
  • XmlWriter = [[XMLWriter alloc] init]; // write XML elements [xmlWriter write start element: @ "root"]; [XML Writer writes: Cracker: @ "Text Content for Original Elements"]; [XmlWriter Write EndElement]; // get the resulting XML string NSString * xml = [xmlWriter toString];
  • This generates the following XML string:

      & root; Root & gt; Text content for the root element & lt; / Root & gt;  

No comments:

Post a Comment