how to create DOM with node and its value

<Order>

<Manifest>

<Item>

<ID>101</ID>

<NAME>Name one</NAME>

<PRICE>$29.99</PRICE>

</Item>

</Manifest>

</Order>

i can write the code to create a DOM for this one.

but how can i write the code to get the DOM as shown below

<Order>

<Manifest>

<Item name="xxx">

<ID>101</ID>

<PRICE>$29.99</PRICE>

</Item>

</Manifest>

</Order>

[575 byte] By [lokloka] at [2007-11-26 23:01:50]
# 1
Your question appears to be how to get an attribute applied to an element. Is that right?If so, use the setAttribute() method of the Element interface.
DrClapa at 2007-7-10 13:26:53 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...