I have GDataXMLDocument created from XML file.
XML being read from file:
<Pages Count="1">
<Page PageNumber="1"></Page>
</Pages>
I need to add new "Page" tag (programmatically). XML after new "Page" added:
<Pages Count="2">
<Page PageNumber="1"></Page>
<Page PageNumber="2"></Page>
</Pages>
Everything is OK as long as there is no need to set stringValue to "Page" tags;
XML should look like this:
<Pages Count="2">
<Page PageNumber="1">Some value</Page>
<Page PageNumber="2">Some other value</Page>
</Pages>
and in program it looks! (you can see this with XMLString method), but when I save the document ([document XMLData]) back to file it looks like this:
<Pages Count="2">
<Page PageNumber="1">Some value</Page>
<Page PageNumber="2"></Page>
</Pages>
Page with number 1 (the old one) has value, but Page with number 2 (the new one) has not. Why can I change stringValue on old tags, but can't on the new ones?