I have some xml read into a XDocument object from a database. I need to determine the instances within the xml of specific nodes. For each instance of the chosen node, I need to insert another node directly beneath it. Heres what Ive got so far to obtain a list of specified nodes
var q = (from x in _doc.Elements("root").Elements().Elements("searchNode") select x).ToList();
So this will give me all instances of the specified nodes within the xml. For each instance, I then need to insert a new node directly beneath the specified node, like this
how would I go about this ? anyone got any pointers ?
View Complete Post