ant84
asked on
Using SAX to edit an xml file
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER