Overview(4.0)

  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") { // ... }


Note!

Only one XML schema option can be used.

The XML Schema Elements


The XML Schema language supports the following element types:
  • simpleType
  • simpleType with restrictions
  • simpleType with union
  • complexType
  • complexType with sequence declarations
  • complexType with extension declarations
  • complexType with all declarations
  • Global element declarations and references
  • SimpleContent elements with extension declarations


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. See Platform Properties(3.0) for more information.