i have a xml tag like this
<ROOT>
<CustomerOrde r>
<ShipDate Value="5/15/2006"/>
<LineItems>
<LineItem>
<BookID Value="1"/>
<Price Value="3"/>
<Quantity Value="10"/>
</LineItem>
</LineItems>
</CustomerOrder>
</ROOT>
i want to add a tag <batch_tag> in between this xml like this
<ROOT>
<BATCH_TAG>
<CustomerOrde r>
<ShipDate Value="5/15/2006"/>
<LineItems>
<LineItem>
<BookID Value="1"/>
<Price Value="3"/>
<Quantity Value="10"/>
</LineItem>
</LineItems>
</CustomerOrder>
</BATCH_TAG>
</ROOT>
how to do this through java? the customer order tag inside this xml can have multiple occurance....ki ndly help
<ROOT>
<CustomerOrde r>
<ShipDate Value="5/15/2006"/>
<LineItems>
<LineItem>
<BookID Value="1"/>
<Price Value="3"/>
<Quantity Value="10"/>
</LineItem>
</LineItems>
</CustomerOrder>
</ROOT>
i want to add a tag <batch_tag> in between this xml like this
<ROOT>
<BATCH_TAG>
<CustomerOrde r>
<ShipDate Value="5/15/2006"/>
<LineItems>
<LineItem>
<BookID Value="1"/>
<Price Value="3"/>
<Quantity Value="10"/>
</LineItem>
</LineItems>
</CustomerOrder>
</BATCH_TAG>
</ROOT>
how to do this through java? the customer order tag inside this xml can have multiple occurance....ki ndly help
Comment