Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to edit an existing XML file ?

 
Venki Ananth
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic