Class XercesParser
java.lang.Object
org.apache.commons.digester.parser.XercesParser
Deprecated.
Create a
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
FieldsModifier and TypeFieldDescriptionprotected static StringDeprecated.The JAXP 1.2 property to set up the schemaLanguage used.protected static org.apache.commons.logging.LogDeprecated.The Log to which all SAX event related logging calls will be made.protected static floatDeprecated.Afloatrepresenting the underlying Xerces versionprotected static StringDeprecated.The current Xerces version.protected static StringDeprecated.Xerces dynamic validation propertyprotected static StringDeprecated.Xerces schema validation property -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SAXParsernewSAXParser(Properties properties) Deprecated.Create aSAXParserbased on the underlyingXercesversion.
-
Field Details
-
log
Deprecated.The Log to which all SAX event related logging calls will be made. -
JAXP_SCHEMA_LANGUAGE
Deprecated.The JAXP 1.2 property to set up the schemaLanguage used. -
XERCES_DYNAMIC
-
XERCES_SCHEMA
-
version
-
versionNumber
-
-
Constructor Details
-
XercesParser
public XercesParser()Deprecated.
-
-
Method Details
-
newSAXParser
public static SAXParser newSAXParser(Properties properties) throws ParserConfigurationException, SAXException, SAXNotSupportedException Deprecated.Create aSAXParserbased on the underlyingXercesversion.- Parameters:
properties- parser specific properties/features- Returns:
- an XML Schema/DTD enabled
SAXParser - Throws:
ParserConfigurationExceptionSAXExceptionSAXNotSupportedException
-
Digesterconstructor, or useDigester.setXMLSchema(javax.xml.validation.Schema)for validation.