Description
Returns information about the data table (the data and metadata) in XML format.
The schema of the XML is available using the GetSchema method.
Syntax
Parameters
Example
| Saving DataTable to XML (C#) | Copy Code |
|---|
//Load data to data table. dbQueryGrid.DataTable.ExecuteQuery("select CardCode, CardName, BalanceSys from [OCRD] where CardCode = N'a-'"); // Use SerializeAsXML to create an XML string. // SerializeAsXML can be used in 3 ways: data only, metadata, both data and metadata. // The usage is determined by the first parameter. // Here we show an example that gets both data and metadata. string xml = dbQueryGrid.DataTable.SerializeAsXML(SAPbouiCOM.BoDataTableXmlSelect.dxs_All); |
|
See Also