Archive

Archive for June, 2012

How To : Update XML nodes with values from the same document

June 19, 2012 1 comment

This post was inspired by a recent thread on OTN where I suggested a few methods to update one or multiple nodes with values from the same document.

Let’s consider this simple structure :

<workbook>
 <worksheet sheetName="MySheet" sheetId="1"/>
 <worksheet sheetName="MySheet" sheetId="2"/>
 <worksheet sheetName="MySheet" sheetId="3"/>
</workbook>

and that we want to update the sheetName of each worksheet using the value in sheetId.

Read more…