Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

refreshing a x ml file

 
siva sankar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
Regards,
Siva
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic