I'm loading a XML file from an PHP API on my server. This XML is written down to the Documents folder.
I now want to get new XML Data from the API and don't want to download the whole file again, because it is very large. So I thought of sending the ID's of the XML-entries to the server so that it just sends back, what I don't have on my iPad already.
That won't be the problem. But how can I access the file and write lines not to the end? The XML looks something like that (for example):
<items>
<item id="0" name="Item one" photo="/images/products/one.png" />
<item id="1" name="Item two" photo="/images/products/two.png" />
</items>
So I need to write the new datas string (<item id="2" name="Item three" photo="/images/products/three.png" />
) inside the "items" node?
Thanks, with kind regards, Julian