• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modify XML using XMLbean

 
Anish Kuti
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exiting application is using XMLBEAN for manipulating XML document.
Current Requirement one method which will update the XML , but the twist is the input of the method will be a xpath [like as /a/b/c[1]/d] and a value.
Now the method should update the element with the given value or if the element is not in the xml ,it needs to be inserted with the value.

Is there any method/api in Xmlbean which can take input as xpath and value.. and it will do modification in the XML.?
Please help ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic