Read XML data into temp-tables
- Last Updated: June 7, 2019
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
XML information read into a temp-table or temp-table buffer includes:
- Schema for defining temp-table fields and indexes
- Data for the temp-table rows
This code example takes a temp-table with field definitions from
the Customer table and reads an XML data file with
three Customer records in it. The following data
file shows the XML representation of the first record in the file:
|
An include file sets up the static temp-table definition:
|
Here is the code sample:
|
The code specifies the XML source file and displays a list of
customer numbers and names after the read completes. Note the required TEMP-TABLE keyword
in the method call.