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 HobbsRank #107 · 20.5K reputationPosted Jan 22, 2010, 10:37 AM EST
JeanNicolas3 reputationPosted Jan 24, 2010, 10:43 PM EST
However, with your idea, I found about the same method with LinQ : XNode.AddAfterSelf().