I think your right.  I got in a bad habit of using GetXML and GetXmlSchema.  I will 
give this a try.  Thanks.

-----Original Message-----
From: Marsh, Drew [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 4:58 PM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] xmlTextReader


franklin gray [mailto:[EMAIL PROTECTED]] wrote:

> <?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>

How did you generate this XML? It's invalid because it has no root element.
If you use DataSet::WriteXml with the XmlWriteMode.WriteSchema enum, it
should generate an XML document that contains the schema and the data
exactly as you want it.

HTH,
Drew
.NET MVP

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.

Reply via email to