org.apache.tomcat.util.digester
public class XercesParser extends Object
SAXParser
based on the underlying Xerces version.
Currently, Xerces 2.3 and up doesn't implement schema validation the same way
2.1 was. In other to support schema validation in a portable way between
parser, some features/properties need to be set.
Since: 1.6
Field Summary | |
---|---|
protected static String | JAXP_SCHEMA_LANGUAGE
The JAXP 1.2 property to set up the schemaLanguage used. |
protected static Log | log
The Log to which all SAX event related logging calls will be made. |
protected static float | version
A float representing the underlying Xerces version |
protected static String | versionNumber
The current Xerces version. |
protected static String | XERCES_DYNAMIC
Xerces dynamic validation property |
protected static String | XERCES_SCHEMA
Xerces schema validation property |
Method Summary | |
---|---|
static SAXParser | newSAXParser(Properties properties)
Create a SAXParser based on the underlying
Xerces version. |
float
representing the underlying Xerces versionSAXParser
based on the underlying
Xerces
version.Parameters: properties parser specific properties/features
Returns: an XML Schema/DTD enabled SAXParser