Load data into dataset from XML using Xpath

  • Thread starter Thread starter Shrage H. Smilowitz
  • Start date Start date
S

Shrage H. Smilowitz

Does anybody know how to Load data into dataset from an XML file using
Xpath? since the LoadXML funcion from the dataset object is only loading
stright from a file or stream

Shrage
 
Shrage,

When it is a dataset that XML file than it is just
ds.readxml(path)

I hope this helps?

Cor
 
But i would like to query the XML first before it's being loaded into the
dataset, in other words, i dont want to load the whole file into the
dataset. I can query an XML document using XPath, but it will result into a
NodeCollection which i cannot pass to the dataset.readXML fuction, I "am"
able to pass an XMLDocument to the dataset.readXML function but i cannot
pass a NodeCollection. Is there a possibility to convert a NodeCollection
into an XMLStream, XMLDocument; something that i cn pass to the
Dataset.ReadXml function?
 
Back
Top