Reads XML schema and data into the DataTable.
Assembly: System.Data (in System.Data.dll)
Reads XML schema and data into the DataTable from the specified file.
The DataTable from an XML document, whereas the ReadXmlSchema method reads only the schema. To read both data and schema, use one of the ReadXML overloads that include the XmlReadMode parameter, and set its value to ReadSchema.method provides a way to read either data only, or both data and schema into a
Note that the same is true for the WriteXml and WriteXmlSchema methods, respectively. To write XML data, or both schema and data from the DataTable, use the WriteXml method. To write just the schema, use the WriteXmlSchema method.