Updating node value to xml
Closed this issue · 1 comments
akrant06 commented
Hi I am using GDataxml for reading xml file.
Is there any API for updating a particular node value and save it back to xml ?
graetzer commented
How about:
GDataXMLDocument *doc = [[GDataXMLDocument alloc]initWithData:documentData options:0 error:NULL];
GDataXMLNode *node = ..// Get your Node
node.stringValue = @"New Content";
// Do additional changes...
NSData *result = [doc XMLData];// or [doc XMLString] if you want a string