Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
$Database.ExportToXml({
    TargetSchema : 'MySchema',
    TargetTable : 'Accounts',
    XPath : 'Accounts/Account',
    // map values whose names are not identical to SQL column names
    Map : function (accountXml) {
        thisaccountXml.SetValue('Password = 'Enc:' + ', this.Password; // mark as encrypted);
        this.AccountType = accountXml.EvaluateSetValue('Type/Code');  // map values whose names are not identical to SQL column names, this.AccountType);
    }
});

Example

Exporting database content into XML

...