DataTable.ReadXmlSchema Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Reads an XML schema into the DataTable.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

NameDescription
System_CAPS_pubmethodReadXmlSchema(Stream)

Reads an XML schema into the DataTable using the specified stream.

System_CAPS_pubmethodReadXmlSchema(String)

Reads an XML schema into the DataTable from the specified file.

System_CAPS_pubmethodReadXmlSchema(TextReader)

Reads an XML schema into the DataTable using the specified TextReader.

System_CAPS_pubmethodReadXmlSchema(XmlReader)

Reads an XML schema into the DataTable using the specified XmlReader.

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.

Return to top
Show: