Overview
You manage XML parsing in UFDL by applying the xml_schema
 construct.
xml_schema [: <xml_schema option>] { <XML Schema elements> };
The XML Schema Options
The following XML schema options are available:
output_encoding - Use this option to specify the type of encoding used. See the official Java SE Documentation from Oracle for information regarding supported encodings.
xml_schema : output_encoding("UTF-8") { // ... }
schemaLocation - Use this option to specify the location of a schema that contains qualified schema constructs.
xml_schema : schemaLocation("http://example.com mydocument.xsd") { // ... }
handle_as_string - Use this option to specify any other data type to be handled as a string data type. The example below results in all decimal data type to be handled as string.
Note!
Only one XML schema option can be used.
The XML Schema Elements
follows the w3schools website for XML Schema Elements, https://www.w3schools.com/xml/schema_elements_ref.asp, with exceptions listed on page https://github.com/digitalroute/mz-example-workflows/blob/master/ultra_xml/limitations_examples.txt.
For examples of what is not supported see https://github.com/digitalroute/mz-example-workflows/blob/master/ultra_xml/dr_xml_schema.bnf.
Note!
If you want to use union type, you must set the property mz.ultra.xml.restrictions
according to your requirements. If you want to use unions and restrictions inside of unions, set this property to union
. If you want to use restrictions everywhere, including inside the union type, set this property to on
. For further information, see Platform Properties.