Load data into dataset from XML using Xpath

  • Thread starter Shrage H. Smilowitz
  • 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
 
C

Cor Ligthert

Shrage,

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

I hope this helps?

Cor
 
S

Shrage H. Smilowitz

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top