I want to create a XML editor (form view type) for iphone. Can anyone suggest me how to proceed in this regard. I know how to parse an XML document but I am having trouble in editing the contents of the file dynamically. This editor should be such that, a new node can be added or a node can be deleted, it can also edit the values.
Please help…
In short you need to parse the document into a readable structure, finding a way to modify that structure, and write it back to XML.
Classes you are likely to need to write include
MyXMLDocument,MyXMLNode,MyXMLElementandMyXMLTextNode, andMyXMLNodelikely needsNSArray *children;,MyXMLNode *parent;andMyXMLDocument *document;as ivars.You also probably need something akin to a
-stringValuemethod; and an understanding of how the XML DOM usually works.