Description
Saves the object data to XML formatted data.
Syntax
Visual Basic |
---|
Public Sub SaveXML( _ ByRef pbstrFileName As String _ ) |
Parameters
- pbstrFileName
Specifies the path and file name of the XML data.
Remarks
You can use this method to save a business object to an XML file. Then, call the GetBusinessObjectFromXML method to load this object into memory again, for example, to copy customers from one database to another. To enable this operation, set the XmlExportType property of the Company object to xet_ValidNodesOnly.
To use ReadXML method, set the XmlExportType to xet_ExportImportMode (3).
For more information, see Exchanging Data Using the DI API XML Capabilities.
Example
The following sample shows how to save data of an object to an XML file. Use this sample as a basis to all business objects (both document and master data types).
Invoice Document - SaveXML Method Sample (Visual Basic) | ||
---|---|---|
Name=Code_VB>
|