1

I have been able to write and read from an XML file from the internal storage. However, if i wish to only edit small portion of the XML file, do i really have to read the entire XML file, maybe using XmlPullParser? Was hoping that there might be ways where i don't need to read the entire file out.

1
  • is it true that i can only edit the XML file if i use SAX or DOM parser?
    – user918197
    Sep 3, 2011 at 8:39

1 Answer 1

2

Here is DOM parser to write XML file u hav just to read xml file i dont no where you put your XML file...So try to write xml file i just referenced in java.....

http://www.roseindia.net/xml/dom/StoreData.shtml

http://www.roseindia.net/xml/dom/RemoveElement.shtml

1
  • Hoewever, i am using SAX parser to read/write from internal memory however i have to read/write the whole XML file each time. But thanks for the links.
    – user918197
    Sep 5, 2011 at 14:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.