pbResolveExternals - BaseXmlDomDocument
Determines if an XML document should attempt to automatically resolve external schema or DTD references in the document
Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None
Syntax
Property Boolean pbResolveExternals
| Access Type | Syntax |
|---|---|
| Read Access: | Get pbResolveExternals to BooleanVariable |
| Write Access: | Set pbResolveExternals to BooleanVariable/Value |
Description
pbResolveExternals determines if an XML document should attempt to automatically resolve external schema or document type definition (DTD) references in the document. Most often, an "external" is define using the 'xsi:schemaLocation' attribute. If the external piece can be resolved, this can be used to validate the document.
By default, pbResolveExternals is False.
The automatic resolution of external schemas can be problematic, as the standards for using this are ill defined. If you are having problems validating a document with automatic schema resolution you may wish to add the schemas manually using AddExternalSchemaFile or, even better, AddExternalSchemaDocument as these methods can provide you with more information about what is and is not working.
Also note that Microsoft's MSXML, and therefore FleXML, disables the use of DTDs for validation. This is done for security reasons. This can result in pbResolveExternals, AddExternalSchemaFile and AddExternalSchemaDocument failing. If you have a document that requires validation with a DTD, you may enable DTD validation as follows:
Set pbDomSecondLevelProperty of hoDoc "ProhibitDTD" to False
Note that "ProhibitDTD" must be cased as shown.