I am new to using GDataXML to parse an xml file.
I want to change the value of some intermediate xml tag in the file & write it back to the file.
Eg. I have following file..
<sheetData>
<row r="7" spans="5:6" x14ac:dyDescent="0.25">
<c r="E7" t="s">
<v>0</v>
</c>
<c r="F7" t="s">
<v>1</v>
</c>
</row>
<row r="8" spans="5:6" x14ac:dyDescent="0.25">
<c r="E8" t="s">
<v>2</v>
</c>
<c r="F8">
<v>9890234654</v>
</c>
</row>
</sheetData>
I want to update the value of phone no (‘9890234654’) to, say, 9503452366.
How can I do that using GDataXML in iOS ?(I am using xcode 4.3.2)
I coudn’t find any method to replace a tag value directly in the original xml tree.
Any help is appreciated.
Thank you.
Did you create the XML file/data? I suggest that you put namespace for the nodes so that they are easier to track. For example:
Having the namespaces in place, here’s a sample code to update the value: