Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DataTable.ReadXmlSchema Method

Reads an XML schema into the DataTable.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method ReadXmlSchema(Stream) Reads an XML schema into the DataTable using the specified stream.
Public method ReadXmlSchema(String) Reads an XML schema into the DataTable from the specified file.
Public method ReadXmlSchema(TextReader) Reads an XML schema into the DataTable using the specified TextReader.
Public method ReadXmlSchema(XmlReader) Reads an XML schema into the DataTable using the specified XmlReader.
Top

Use the ReadXmlSchema method to create the schema for a DataTable. The schema includes table, relation, and constraint definitions.

To write a schema to an XML document, use the WriteXmlSchema method.

The XML schema is interpreted according to the XSD standard.

The ReadXmlSchema method is generally invoked before invoking the ReadXml method which is used to fill the DataTable.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.