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

System.Data.DataSet.WriteXml Method

Writes the data to the specified file using the indicated write mode.

public void WriteXml (string fileName, XmlWriteMode mode)

Parameters

fileName
Name of the file 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.XmlWriteMode 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