2.10.3.2.2 Automatic Conversion and Xerces Parser XML Validation
The Xerces parser uses default attribute settings to control XML validation during automatic conversion. However, Tuxedo supports 14 specific Xerces DOMParser class attributes that provide some automatic conversion customizing flexibility.
If you are using the automatic conversion method, parser validation is determined one of two ways:
- Accepting the default parser validation settings
- Specifying validation options through the
TPXPARSFILE
environment variable
The TPXPARSFILE
environment variable designates the fully qualified path to a text file that contains the XercesDOMParser class attribute settings you want to modify.
Each attribute in the text file is written on a separate line in the following format:
<parser attribute>=<setting>
The <parser attribute>
can be any or all of the 14 parser attributes in the following table, where (D) denotes the default setting.
Note:
For a detailed description of these attributes, see Xerces parser 3.2.3 documentation.Parser Attribute | Setting |
---|---|
CacheGrammarFromParse | True or False (D) |
DoNameSpaces | True or False (D) |
DoSchema | True or False (D) |
ExternalSchemaLocation | Fully qualified path to file_name.xsd
|
ExitOnFirstFatalError | True or False (D) |
IncludeIgnorableWhiteSpace | True or False (D) |
LoadGrammar | Fully qualified name of validating file |
NoNamespaceSchemaLocation | Fully qualified path to file_name.xsd
|
StandardUriConformant | True or False (D) |
UseCachedGrammarInParse | True or False (D) |
UseScanner | WF, DG, SG, or IG (D) |
ValidationConstraintFatal | True or False (D) |
ValidationScheme | Val_Never, Val_Always, or Val_Auto (D) |
ValidationSchemaFullChecking | True or False (D) |
The following listing is a sample input plain text file for the TPXPARSFILE
environment variable.
Listing Sample Input for TXPARSFILE Environment Variable
CacheGrammarFromParse=True
DoNameSpaces=True
DoSchema=True
ExternalSchemaLocation= http://www.xml.org/sch.xsd
ExitOnFirstFatalError=c:\xml\example.xsd
IncludeIgnorableWhiteSpace=True
LoadGrammar=
NoNamespaceSchemaLocation=
StandardUriConformant=True
UseCachedGrammarInParse=True
UseScanner=WF
ValidationConstraintFatal=True
ValidationScheme=Val_Auto
ValidationSchemaFullChecking=True
Parent topic: Using Automatic Conversion