Meaningless Drivel is fun!*
The moose likes XML and Related Technologies and the fly likes Set the Text for the xml tag 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 "Set the Text for the xml tag" Watch "Set the Text for the xml tag" New topic
Author

Set the Text for the xml tag

renu richard
Ranch Hand

Joined: Oct 06, 2008
Posts: 116
Hi,

My requirement is... i have an xml file. In which i need to set the value for a tag.



Please refer to the xml file .My requirement is , say for example...in the attached xml,

book tag is repeating. First i need to see which book is having the attribute 'id' as bk102. And then i need to find whether the value of title is "Midnight Rain". If its Midnight Rain then i need to update the value of "price" tag to 10. Currently it is 5.95..i need to change this to 10.

Can someone tell me which would be the best approach to do this.

Thanks !!!


Cheers,
Richard
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Set the Text for the xml tag
 
Similar Threads
convert a db blob of xml into a jdom XML object
Turn this Java into Groovy!
Creation of GUI from xml file
Set the TextValue for the xml tag
Newbie problem with XSLT