I have dataset which I used its GetXMLSchema and GetXML methods on. With those string values, how can I load a new dataset with the xml and its schema
Here's my code so far:
Dim sXMLSchema As String = SomeDataSet.GetXMLSchema()
Dim sXML As String = SomeDataSet.GetXML()
Dim ds As New DataSet
' ds.ReadXmlSchema( ??? ) ' What goes here?
I think I need to convert sXMLSchema to some type of reader but I haven't been able to figure that part out yet. And I don't really want to have to save the schema to an XSD file just to use the ReadXmlSchema(FileName) overload.
Any suggestions on how to do this?
Thanks in advance.