I want to know if possible to manipulate XML as this way in iOS.
- Create the XML from nothing.
- Insert custom tags and info in an order.
Example:
- creating xml in memory like an array or dictionary
- insert tag
<test></test> - insert tag
<field1>some</field1>inside<test /> - insert tag
<field2>some</field2>after<field1 /> - insert tag
<field12>some</field>inside<field2 /> - close xml and save to NSDocuments
Thanks
You can use plist files which are essentially xmls.
You can directly write/read plist files to/from NSArray or NSDictionary.
Check the Plist Programming Guide