Franklin, it looks like your xml string is invalid because it has no root element.
Can you load the Xml schema and the data into a document that provides the root node so you get something like: <?xml version="1.0" encoding="utf-16"?> <SchemaAndData> <xs:schema> ....</xs:schema> <NewDataSet> <Table> <SysID>12</SysID> <name>Billy Smith</name> <IMStatus>Available</IMStatus> <Admin>false</Admin> </Table> </NewDataSet> </SchemaAndData> HTH, Christoph Schittko Software Architect Mshow - a division of InterCall ----- Original Message ----- From: "franklin gray" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 30, 2002 4:33 PM Subject: [DOTNET] xmlTextReader 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) You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.