• Post Reply Bookmark Topic Watch Topic
  • New Topic

XML Tag modification  RSS feed

 
yspl india
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we modify xml content i.e. to insert,delete & modfiy Tag in existing xml file using DOM parser?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After you have created a Document object using a DOM parser you can modify it using the methods of the Document, Element and Node classes/interfaces. How you save it afterwards depends on the XML package you use, but I think all of them can do it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!