wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Modify XML using XMLbean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Modify XML using XMLbean" Watch "Modify XML using XMLbean" New topic
Author

Modify XML using XMLbean

Anish Kuti
Greenhorn

Joined: May 12, 2008
Posts: 29
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 ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Modify XML using XMLbean
 
Similar Threads
spring mvc xmlbean object JSON mapping error
xmlBean Problem
XmlBean validation
[XMLBean 2.3] How to generate XML file with start tag and end tag for empty element
XMLBean Extensions