XmlNode for dataset xml

  • Thread starter Thread starter Alexander Vasilevsky
  • Start date 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
 
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>
 
Back
Top