Class GenericParser


  • @Deprecated
    public class GenericParser
    extends java.lang.Object
    Deprecated.
    Create an XMLParser instance yourself, configure validation appropriately, and pass it as a parameter to the Digester constructor, or use Digester.setXMLSchema(javax.xml.validation.Schema) for validation.
    Create a SAXParser configured to support XML Schema and DTD.
    Since:
    1.6
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String JAXP_SCHEMA_LANGUAGE
      Deprecated.
      The JAXP 1.2 property to set up the schemaLanguage used.
      private static java.lang.String JAXP_SCHEMA_SOURCE
      Deprecated.
      The JAXP 1.2 property required to set up the schema location.
      protected static org.apache.commons.logging.Log log
      Deprecated.
      The Log to which all SAX event related logging calls will be made.
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericParser()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static javax.xml.parsers.SAXParser newSAXParser​(java.util.Properties properties)
      Deprecated.
      Create a SAXParser configured to support XML Scheman and DTD
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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_SOURCE

        private static final java.lang.String JAXP_SCHEMA_SOURCE
        Deprecated.
        The JAXP 1.2 property required to set up the schema location.
        See Also:
        Constant Field Values
      • JAXP_SCHEMA_LANGUAGE

        protected static java.lang.String JAXP_SCHEMA_LANGUAGE
        Deprecated.
        The JAXP 1.2 property to set up the schemaLanguage used.
    • Constructor Detail

      • GenericParser

        public GenericParser()
        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.SAXNotRecognizedException
        Deprecated.
        Create a SAXParser configured to support XML Scheman and DTD
        Parameters:
        properties - parser specific properties/features
        Returns:
        an XML Schema/DTD enabled SAXParser
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        org.xml.sax.SAXNotRecognizedException