asp.net.ph

DataSet.GetXml Method

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;

Return Value

String that is a representation of the data stored in the DataSet.

Remarks

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.

See Also

DataSet Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph