SAX Reader Features

 

SAX reader features are manipulated through the getFeature or putFeature method on the SAX reader (ISAXXMLReader/IVBSAXXMLReader).

The following is a complete list of SAX reader features.

Feature Variant Type Default Value MSXML Component
exhaustive-errors Boolean False 3.0 and 6.0
external-general-entities Boolean False 3.0 and 6.0
external-parameter-entities Boolean False 3.0 and 6.0
forced-resync Feature Boolean True 3.0 and 6.0
namespace-prefixes Boolean True 3.0 and 6.0
namespaces Boolean True 3.0 and 6.0
parameter-entities Boolean True 3.0 and 6.0
preserve-system-identifiers Boolean False 3.0 and 6.0
prohibit-dtd Boolean False for 3.0, 4.0, and 5.0. True for 6.0. 3.0 and 6.0
schema-validation Boolean False 6.0
server-http-request Boolean False 3.0 and 6.0
suppress-validation-fatalError Feature Boolean False 6.0
use-inline-schema Feature Boolean False 6.0
use-schema-location Feature Boolean False 6.0
Validate property settings Behavior of the parser
use-inline-schema = true

 schema-validation = true
Parsing an XML document that is not valid against the specified schema will result in an error.
use-inline-schema = true

 schema-validation = false
Parsing an XML document that is not valid against the specified schema will result in successful validation.
use-inline-schema = false

 schema-validation = true
Parsing an XML document that is not valid against the specified schema will result in successful validation. Validation will succeed becayse when use-inline-schema is set to false, inline schemas are treated like any other XML fragments.
use-schema-location = true

 schema-validation = true
Parsing an XML document that is not valid against the specified schema will result in an error.
use-schema-location = true

 schema-validation = false
Parsing an XML document that is not valid against the specified schema will result in successful validation.
use-schema-location = false

 schema-validation = true
Parsing an XML document that is not valid against the specified schema will result in an error.