Hi everybody
I have a big xml-file, I want to do a xpath-query on that file so I just keep the part that I want, and then I want to read that node into a dataset...
![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
what I tried is :
the xml-file contains hundreds of NP nodes, but I just want the one I need in my dataset
mydataset.readxml(xmlni) doesn't work
anyone an idea how to get started? thx in advance
grtz
I have a big xml-file, I want to do a xpath-query on that file so I just keep the part that I want, and then I want to read that node into a dataset...
what I tried is :
VB.NET:
Dim xpathDoc As XPathDocument
Dim xmlNav As XPathNavigator
Dim xmlNI As XPathNodeIterator
xpathDoc = New XPathDocument("C:\test.xml")
xmlNav = xpathDoc.CreateNavigator()
xmlNI = xmlNav.Select("descendant::NP[NR='" & mynr & "']")
the xml-file contains hundreds of NP nodes, but I just want the one I need in my dataset
mydataset.readxml(xmlni) doesn't work
anyone an idea how to get started? thx in advance
grtz
Last edited by a moderator: