Note: The XML document must be an XML Schema written in the XML Schema Definition (XSD) language in the 2001 XML Schema namespace (http://www.w3.org/2001/XMLSchema). Non-OpenEdge applications might use XSD in many ways. The READ-XMLSCHEMA( ) method attempts to parse any XSD elements that form an obvious relational structure into ABL temp-tables and ProDataSets. However, the method might not be able to handle every XSD element generated by a non-OpenEdge source. The closer a particular XSD element conforms to what the WRITE-XMLSCHEMA( ) method creates, the more likely that the READ-XMLSCHEMA( ) method will succeed.
Return type:
READ-XMLSCHEMA ( source-type , file memptr handle longchar, override-default-mapping, field-type-mapping , verify-schema-mode )A CHARACTER expression that specifies the source XML document type. Valid values are: "FILE", "MEMPTR", "HANDLE", and "LONGCHAR".A CHARACTER expression that specifies the name of an XML Schema file. You can specify an absolute pathname, a relative pathname (based on the current working directory), or a URL pathname. Valid URL protocols include FILE and HTTP (the HTTPS protocol is not supported). The AVM verifies that the file exists and is accessible. The pathname can contain Unicode characters. See OpenEdge Development: Internationalizing Applications for more information about Unicode.If you specify the Unknown value (?), the method uses the default value of FALSE.
"field-name-1,data-type-1 ,field-name-n,data-type-n "A CHARACTER expression that evaluates to the name of the specified field. For a ProDataSet object, you must qualify the field name with the buffer name from the XML Schema. That is, buffer-name.field-name.If you specify the Unknown value (?), the method uses the default data type. For more information about the ABL XML data type mapping rules, see OpenEdge Development: Working with XML.An optional CHARACTER expression that specifies the mode in which the READ-XMLSCHEMA( ) method verifies any XML Schema against existing ABL schema. The expression must evaluate to "LOOSE" or "STRICT". The default value is "LOOSE".Table 100 lists the READ-XMLSCHEMA( ) method schema verification modes.
Table 100: If you specify the Unknown value (?), the method uses the default value of LOOSE.For more information about creating schema from XML Schema or verifying XML Schema, see OpenEdge Development: Working with XML.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |