Writes the data to the specified text writer object using the indicated write mode.
- writer
- Writer object to write the data to.
- mode
- One of the System.Data.XmlWriteMode values.
This method makes it possible to write the DataSet data and/or its schema into an XML document. To write both the schema and the data use one of the overloaded WriteXml versions which take the System.Data.WriteXmlMode parameter and set it to WriteSchema. To write only the DataSet schema use the DataSet.WriteXmlSchema method.
Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0