You manage XML parsing in UFDL by applying the xml_schema
construct.
Code Block |
---|
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.
Code Block xml_schema : output_encoding("UTF-8") { // ... }
schemaLocation - Use this option to specify the location of a schema that contains qualified schema constructs.
Code Block 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.
Code Block xml_schema : handle_as_string("decimal") { // ... }
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 |