Create dynamic ABL objects from XML Schema
- Last Updated: June 7, 2019
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Both the READ-XML( ) and READ-XMLSCHEMA( ) methods
can take an XML Schema and create a temp-table or ProDataSet definition
from it.
The READ-XML( ) method can find and
use XML Schema from the following sources, in the following order:
- The XML Schema specified with the schema-location option
of the
READ-XML( )method. If this option is used, XML Schema references embedded in XML data are ignored. - A
<schema>child element of the root element of the XML data document. Provided the method does not specify a schema-location, then any one or combination of this and the remaining list item are used. - An
xsi:schemaLocationorxsi:noNamespaceSchemaLocationattribute on an instance data in the XML data document.
In the following example, the READ-XMLSCHEMA( ) method
will produce a temp-table named Person with fields name, height, weight,
and gender:
|
In the next example, the READ-XMLSCHEMA( ) method
produces a ProDataSet named dsGarden with two temp-tables:
one for holding information about the plots in the garden and another
for holding information about vegetables in the garden:
|