Mono Class Library: System.Data.DataSet Overview | Members

System.Data.DataSet.WriteXml Method

Writes the data to the specified XML writer object using the indicated write mode.

public void WriteXml (System.Xml.XmlWriter writer, XmlWriteMode mode)

Parameters

writer
XML writer object to write the data to.
mode
One of the System.Data.XmlWriteMode values.

Remarks

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.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0