XMLStreamreader and XMLStreamWriter in java

emorrishese

New Member
I am reading a XML file using XMLStreamreader and parsing certain element values and store them in memeory. Then, I am applying some rules and changing the values.Now, I would like to write the new values back to the xml file. I am thinking to use XMLStreamWriter to write the values.Is there a way I can just update the values in the file as I am reading the file, or do I have to read the entire file in memory first, then make the update in the memory and write back?Thanks.
 
Back
Top