System.Data Namespace DataSet Class
Returns the XML representation of the data stored in the DataSet.
[ VB ]
Public Function GetXml ( ) As String
[ C# ]
public String GetXml ( );
[ C++ ]
public: String* GetXml ( );
[ JScript ]
public function GetXml ( ) : String;
String that is a representation of the data stored in the DataSet.
If the DataSet has changes, calling this method is identical to calling WriteXml with XmlWriteMode set to DiffGram; otherwise it is equivalent to calling WriteXml with XmlWriteMode set to IgnoreSchema.
NOTE: GetXml returns XML as a string, and therefore, requires more overhead than using WriteXml to write XML to a file.
DataSet Members