CHAPTER 14 Exporting and Importing XML Data
DataWindow Designer User’s Guide 417
You can also use the Import.XML.Trace and Import.XML.TraceFile
DataWindow object properties.
If you use
ImportClipboard or ImportString to import the data, you must specify
XML! as the importtype argument. For example:
importstring(XML!, ls_xmlstring)
If you omit the importtype argument, the trace file is not created. You do not
need to specify the importtype argument if you use
ImportFile.
Example: default
import
The following trace log shows a default import of the department table in the
EAS Demo database:
/*--------------------------------------------------*/
/* 09/10/2005 18:26 */
/*--------------------------------------------------*/
CREATING SAX PARSER.
NO XML IMPORT TEMPLATE SET - STARTING XML DEFAULT
IMPORT.
DATAWINDOW ROWSIZE USED FOR IMPORT: 3
ELEMENT: dept_id: 100
ELEMENT: dept_name: R & D
ELEMENT: dept_head_id: 501
--- ROW
ELEMENT: dept_id: 200
ELEMENT: dept_name: Sales
ELEMENT: dept_head_id: 902
--- ROW
ELEMENT: dept_id: 300
ELEMENT: dept_name: Finance
ELEMENT: dept_head_id: 1293
--- ROW
ELEMENT: dept_id: 400
ELEMENT: dept_name: Marketing
ELEMENT: dept_head_id: 1576
--- ROW
ELEMENT: dept_id: 500
ELEMENT: dept_name: Shipping
ELEMENT: dept_head_id: 703
--- ROW