XmlNode for dataset xml

  • Thread starter Alexander Vasilevsky
  • Start date
A

Alexander Vasilevsky

Is that valid XmlNode for dataset xml.
How to fill in those xml 'of a dataset?
There DataSet.ReadXml (XmlReader), but you can initialize XmlReader only URI
xml- file, and I have a xml data dataseta in XmlNode ...

http://www.alvas.net - Audio tools for C# and VB.Net developers
 
M

Martin Honnen

Alexander said:
Is that valid XmlNode for dataset xml.
How to fill in those xml 'of a dataset?
There DataSet.ReadXml (XmlReader), but you can initialize XmlReader only URI
xml- file, and I have a xml data dataseta in XmlNode ...

I am not sure I understand what you are trying to achieve but if you
have an XmlNode and want to "pass" that to an API taking an XmlReader
then you can use XmlNodeReader e.g.
Dim ds As New DataSet()
ds.ReadXml(New XmlNodeReader(yourXmlNodeInstance))
see
<URL:http://msdn2.microsoft.com/en-us/library/system.xml.xmlnodereader.aspx>
 

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