Skip to content

ExportToXml

Writes the column values of the row into child elements of an XML node.

1
myDataRow.ExportToXml(node: Xml):void

Parameters

Xml node
    The XML node to write the column values to.

Remarks

Columns are matched to child elements by name; the data model schema is used to create missing elements.

Examples

Fill a form section from a row

1
2
3
4
5
var customer = $Database.GetData('Sales', 'Customers', 'Id', $Xml.Evaluate('Customer/Id'))[0];

if (customer) {
    customer.ExportToXml($Xml.SelectSingle('Customer'));
}