i have an XML file that is a mile long, and I need to add an element, but it is near the top.
If you were to look at the XML, it would go something like:
i am loading the XML file with XPathNavigaor with the following Code:
But I can't seem to figure out how to insert what I need.
Thanks
If you were to look at the XML, it would go something like:
HTML:
<VeryTop> - if i colapse this one, everthing is inside of it.
<NextToTop> -if i colapse this one, most things are inside
<WhereINeedToInsert>---I need to insert this node
<someValuesToInsert/> --as well as some values
</WhereINeedToInsert>
</NextToTop>
</VeryTop>
i am loading the XML file with XPathNavigaor with the following Code:
VB.NET:
Dim xpathDoc As XPathDocument
Dim xmlNav As XPathNavigator
xpathDoc = New XPathDocument("tempXML")
xmlNav = xpathDoc.CreateNavigator()
But I can't seem to figure out how to insert what I need.
Thanks
Last edited by a moderator: