My XML
- <Bank>
- <Customer id="0">
- <Accounts>
- <Account id="0" />
- <Account id="1" />
- </Accounts>
- </Customer>
- <Customer id="2">
- <Accounts>
- <Account id="0" />
- </Accounts>
- </Customer>
- </Bank>
i want to add new account element before customer id=2.
i have this xml in xelement and i want to add other xelement to the first. how can do that?
Thanks for the help.