Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Replacing XML element value through Java code

843834Jun 21 2001 — edited Jul 23 2001
HI ,
Can anyone tell me how to replace the value of an XML doucment child element through Java code.
for example I would like to replace the item price with another value, leaving the rest of the data as it is.

<items>
<item>
<title>Empire Burlesque</title>
<quantity>1</quantity>
<price>10.90</price>
</item>

</items>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 20 2001
Added on Jun 21 2001
7 comments
584 views