Try OpenEdge Now
skip to main content
Working with XML
Reading and Writing XML Data from Temp-Tables and ProDataSets : Using XML Schema : Inferring definitions from XML data

Inferring definitions from XML data

If the temp-table or ProDataSet has no definition, and the READ-XML( ) method does not specify a schema-location, and the XML document does not contain references to XML Schema, READ-XML( ) will attempt to construct XML Schema from the XML data. This is known as inferring schema.
If an element in the instance data contains the "xsi:type" attribute, the field is assigned an ABL data type based on XML Schema mapping rules. See XML Schema and ABL Data Type Mappings If the element is not typed, the field will be CHARACTER. All attributes and text elements will become CHARACTER fields.
* Inferring schema for a temp-table
* Inferring schema for a ProDataSet