Class XercesParser
- java.lang.Object
-
- org.apache.commons.digester.parser.XercesParser
-
@Deprecated public class XercesParser extends java.lang.Object
Deprecated.Create an XMLParser instance yourself, configure validation appropriately, and pass it as a parameter to theDigesterconstructor, or useDigester.setXMLSchema(javax.xml.validation.Schema)for validation.Create aSAXParserbased 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
Fields Modifier and Type Field Description protected static java.lang.StringJAXP_SCHEMA_LANGUAGEDeprecated.The JAXP 1.2 property to set up the schemaLanguage used.protected static org.apache.commons.logging.LoglogDeprecated.The Log to which all SAX event related logging calls will be made.protected static floatversionDeprecated.Afloatrepresenting the underlying Xerces versionprotected static java.lang.StringversionNumberDeprecated.The current Xerces version.protected static java.lang.StringXERCES_DYNAMICDeprecated.Xerces dynamic validation propertyprotected static java.lang.StringXERCES_SCHEMADeprecated.Xerces schema validation property
-
Constructor Summary
Constructors Constructor Description XercesParser()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static javax.xml.parsers.SAXParsernewSAXParser(java.util.Properties properties)Deprecated.Create aSAXParserbased on the underlyingXercesversion.
-
-
-
Field Detail
-
log
protected static org.apache.commons.logging.Log log
Deprecated.The Log to which all SAX event related logging calls will be made.
-
JAXP_SCHEMA_LANGUAGE
protected static java.lang.String JAXP_SCHEMA_LANGUAGE
Deprecated.The JAXP 1.2 property to set up the schemaLanguage used.
-
XERCES_DYNAMIC
protected static java.lang.String XERCES_DYNAMIC
Deprecated.Xerces dynamic validation property
-
XERCES_SCHEMA
protected static java.lang.String XERCES_SCHEMA
Deprecated.Xerces schema validation property
-
version
protected static float version
Deprecated.Afloatrepresenting the underlying Xerces version
-
versionNumber
protected static java.lang.String versionNumber
Deprecated.The current Xerces version.
-
-
Constructor Detail
-
XercesParser
public XercesParser()
Deprecated.
-
-
Method Detail
-
newSAXParser
public static javax.xml.parsers.SAXParser newSAXParser(java.util.Properties properties) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, org.xml.sax.SAXNotSupportedException
Deprecated.Create aSAXParserbased on the underlyingXercesversion.- Parameters:
properties- parser specific properties/features- Returns:
- an XML Schema/DTD enabled
SAXParser - Throws:
javax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionorg.xml.sax.SAXNotSupportedException
-
-