dcsimg
inserting new record or modifying a record in a XML data file
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   enver_veli
Posted On:   Friday, February 23, 2007 11:09 AM

Hi everybody.
I've got some problems with Java and XML. I made an example program that echoes XML file using SAX and DOM (i used Java official tutorials). But i wantto insert data into XML file (or modify). How can i do that without using file management? I mean, is there an easy way to insert or modify data into an XML file? By the way i dont want to rewrite document after i load contents into memory and changed it.

Re: inserting new record or modifying a record in a XML data file

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, March 10, 2007 11:51 AM

you can add nodes etc. using the DOM, but if you don't want to rewrite the XML file itself, all your changes will be gone after your program exits of course.
About | Sitemap | Contact