A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
refreshing a x ml file
Joined: Jul 13, 2006
Aug 13, 2007 02:28:00
I am adding data to an existing xml file dynamically.But when i am doing like this,the old data is replacing with the new data.Is there any API or method to refresh the xml file so that no data should be lost when i add the data.
Thanks in Advance
Joined: Nov 29, 2005
Aug 13, 2007 02:41:00
How are you achieving this ? Are you reading the XML into a DOM and then add nodes to it and again serialize it back to a XML ?
Joined: Oct 14, 2005
Aug 13, 2007 09:11:00
The API is the one you are already using, I expect. You just have to use it differently. If you provided a small code example I am sure somebody could point out what exactly you should do differently.
(And by the way: when you say you are adding the data "dynamically", exactly what do you mean by that?)
I agree. Here's the link:
subject: refreshing a x ml file
Writing & into XML file
Writing byte array to xml in Java
XML generation for data in a table
XML Parsing Error
trouble parsing "&" from xml file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015