I want to modify xml attribute using objective c on some action
for example, i have button on screen and my xml tag is
mynode attribute1=”” attribute2=”” attribute3=””
/mynode
if initial value of attribute3 is NO, on tapping button i want to change it to YES and write it to xml file which is in projects directory.
Please help me if anyone know about this.
I have tried using GDataXML addattribute method, but not able to modify tag.
It is not possible to edit the XML file in Objective – c. If you want to do this, then you needs to create your own xml file or you can append the tags to the existing xml.
Please refer the following code where I am created my own xml to append the bytes array of a image & adding it to the original xml.
You can modify it as per your requirement.