I am returning the schema and the data of a dataset in a function and lets say it
looks something like below. I would like to load the whole thing into an
XMLTextReader, but the first line is causing me problems. I would like to stay away
from editing the string because of problems that might occur down the road. Anybody
got any ideas on what to do?
This is how I try to load it. XMLString has both the xml and the schema.
MyStringReader = New System.IO.StringReader(XMLString)
MyTextReader = New Xml.XmlTextReader(MyStringReader)
<?xml version="1.0" encoding="utf-16"?>
<xs:schema ....</xs:schema>
<NewDataSet>
<Table>
<SysID>12</SysID>
<name>Billy Smith</name>
<IMStatus>Available</IMStatus>
<Admin>false</Admin>
</Table>
</NewDataSet>
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.