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




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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