This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes How to edit an existing XML file ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to edit an existing XML file ?" Watch "How to edit an existing XML file ?" New topic
Author

How to edit an existing XML file ?

Venki Ananth
Ranch Hand

Joined: Dec 17, 2008
Posts: 32
Hai,

I am using this xml file.
<root>
<user id='1'>
<name>rose</name>
<age>22</age>
</user>
<user id='2'>
<name>jasmine</name>
<age>12</age>
</user>
</root>

I would like to edit the 2nd user name as "lotus". so i can get

<root>
<user id='1'>
<name>rose</name>
<age>22</age>
</user>
<user id='2'>
<name>lotus</name>
<age>12</age>
</user>
</root>

any reference link or idea ?

Advance thanks.
[ December 22, 2008: Message edited by: Venki Ananth ]

Venki
http://saalram.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to edit an existing XML file ?
 
Similar Threads
date range in xsl
how to remove particular child element
question about jsp:useBean from mock test by anand chawala
i need to create a xml file from Jtree
How to replace TextNode in XML?