Search code examples
javaandroiddomsimple-framework

Update xml file using simple-framework


I'm using simple-framework to xml parsing in my android project. Is it possible to update only specified xml element?

I'm getting list of java objects from xml and I would like to update only one (or more) object at a time and write back to this xml file.


Solution

  • You can try to implement this behaviour manually (eg. skipp n bytes then read some xml), but it's easier - and safer - to process the whole xml.