I need some help regarding inserting node on an xml.
I have a xml tree and I want to insert data on a specific location on the tree.
Joining an example. How do I do, if I want to insert a node between Hierarchy with ID_Hierarchy="5" and Hierarchy ID_Hierarchy="6".
<Hierarchy ID_Hierarchy="5" ID_Level="3">
<Hierarchy ID_Hierarchy="6" ID_Level="3">
The best solution I can think is to reconstruct the entire node but maybee is there a better solution.
Thanks for the assistance.
Sam HobbsPosted Jan 22, 2010, 3:37 PM
JeanNicolasPosted Jan 25, 2010, 3:43 AM
However, with your idea, I found about the same method with LinQ : XNode.AddAfterSelf().