Configuring Extension Validation and XML Security - highsource/jaxb-tools GitHub Wiki
Controlling the extension and validation modes
- extension- If- true, the XJC binding compiler will run in the extension mode (XJC's- -extensionoption). Otherwise, it will run in the strict conformance mode (this is the default). Please note that you must enable the extension mode if you use vendor extensions in your bindings.
- strict- If- true(default), XJC will perform strict validation of the input schema. If- strictis set to- falseXJC will be run with- -nv, this disables strict validation of schemas.
Controlling the XML security
Since 0.9.0.
- disableXmlSecurity- If- true, disables XML security features when parsing XML documents. Default is- true.
- accessExternalSchema- Restricts access to the protocols specified for external reference set by the- schemaLocationattribute,- importand- includeelements. Value: a list of protocols separated by comma. A protocol is the scheme portion of a URI, or in the case of the JAR protocol,- jarplus the scheme portion separated by colon. The keyword- allgrants permission to all protocols. Default is- all.
- accessExternalDTD- Restricts access to external DTDs and external entity references to the protocols specified. Value: a list of protocols separated by comma. A protocol is the scheme portion of a URI, or in the case of the JAR protocol,- jarplus the scheme portion separated by colon. The keyword- allgrants permission to all protocols. Default is- all.