I need some help using the Java XML APIs.
Suppose I have an org.w3c.dom.Document containing an XML that is similar to:
What is the easiest and "best" way to change all of the <inner> values from 123 to 321 (regardless of <type>)?
Suppose I have an org.w3c.dom.Document containing an XML that is similar to:
Code:
<XML>
<outer>
<type>A</type>
<inner>123</inner>
</outer>
<outer>
<type>B</type>
<inner>123</inner>
</outer>
<outer>
<type>C</type>
<inner>123</inner>
</outer>
</XML>
What is the easiest and "best" way to change all of the <inner> values from 123 to 321 (regardless of <type>)?