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

System.Data.DataSet.GetXml Method

Returns the data contained in the DataSet formatted as XML.

public string GetXml ()

Returns

A string which contains the XML representation of the data in the current DataSet.

Remarks

Calling this method is identical to invoking the DataSet.WriteXml method with XmlWriteMode set to IgnoreSchema.
Note:

Using GetXml in order to save the XML data into a file has more overhead than calling DataSet.WriteXml directly.

Requirements

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