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

System.Data.DataSet.WriteXml Method

Writes the data to the specified text writer object.

public void WriteXml (System.IO.TextWriter writer)

Parameters

writer
Writer object to write the data to.

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