Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

editing data in xml file

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

I have a xml file ex.xml.Now i want to add some more data to the existing xml file through a java program using DOM.Can it be possible?if yes,how can we do this?

Thanks in Advance,
Regards,
Siva
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Have a look at the JavaDocs for org.w3c.dom; you can add nodes, remove them, change attributes and values etc.
[ April 04, 2007: Message edited by: Paul Sturrock ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic