aspose file tools*
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 Spring in Action this week in the Spring 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 ?