Infer schema for a ProDataSet
- Last Updated: June 7, 2019
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Suppose you have an XML document for a dataset, but
you have no XML Schema for it. You can call the READ-XML( ) method
on a ProDataSet handle and create a dynamic ProDataSet object in ABL.
This XML document is an example:
|
Using READ-XML( ) on a ProDataSet object
will create a ProDataSet named myDataSet with three temp-table
buffers: Department, Employee and Family.
The Department temp-table has two CHARACTER fields: DeptCode and DeptName.
The Employee temp-table has six CHARACTER fields: EmpNum, DeptCode, LastName, FirstName, Address and City.
The Family temp-table has four CHARACTER fields: RelativeName, Relation, IncludedOnBenefits,
and EmpNum.
Using READ-XML( ) on a temp-table object
will fail, since there is more than one temp-table represented in
the XML document.