org.apache.commons.digester.parser

Class GenericParser


public class GenericParser
extends java.lang.Object

Create a SAXParser configured to support XML Schema and DTD.

Since:
1.6

Field Summary

protected static String
JAXP_SCHEMA_LANGUAGE
The JAXP 1.2 property to set up the schemaLanguage used.
private static String
JAXP_SCHEMA_SOURCE
The JAXP 1.2 property required to set up the schema location.
protected static Log
log
The Log to which all SAX event related logging calls will be made.

Method Summary

static SAXParser
newSAXParser(Properties properties)
Create a SAXParser configured to support XML Scheman and DTD

Field Details

JAXP_SCHEMA_LANGUAGE

protected static String JAXP_SCHEMA_LANGUAGE
The JAXP 1.2 property to set up the schemaLanguage used.


JAXP_SCHEMA_SOURCE

private static final String JAXP_SCHEMA_SOURCE
The JAXP 1.2 property required to set up the schema location.


log

protected static Log log
The Log to which all SAX event related logging calls will be made.

Method Details

newSAXParser

public static SAXParser newSAXParser(Properties properties)
            throws ParserConfigurationException,
                   SAXException,
                   SAXNotRecognizedException
Create a SAXParser configured to support XML Scheman and DTD

Parameters:
properties - parser specific properties/features

Returns:
an XML Schema/DTD enabled SAXParser


Copyright (c) 2001-2004 - Apache Software Foundation