Using SAX to edit an xml file
Posted on 2005-03-01
I am able to parse an xml file, and retrieve data element by element for the program to use, but is it possible using SAX to write back to the xml file?
What I would like to be able to do is add elements to it, or edit attribute values of the elements currently there. A few tutorials I have read say edit it as a text file, but I'm hoping there is a way with a SAX parser to just insert new elements, and it'll do the rest. I am using the SAXParserFactory. Can anyone give me a rough outline of whether its possible?