| org.apache.cocoon.xml.AbstractXMLProducer org.apache.cocoon.components.parser.JaxpParser
All known Subclasses: org.apache.cocoon.components.parser.PooledJaxpParser,
JaxpParser | public class JaxpParser extends AbstractXMLProducer implements Parser,ErrorHandler,Composable,Parameterizable,Disposable,Poolable(Code) | | An XMLParser that is only dependant on JAXP 1.1 compliant parsers.
The configuration can contain the following parameters :
- validate (boolean, default =
false ) : should the parser
validate parsed documents ?
- namespace-prefixes (boolean, default =
false ) : do we want
namespaces declarations also as 'xmlns:' attributes ?
Note : setting this to true confuses some XSL
processors (e.g. Saxon).
- reuse-parsers (boolean, default =
true ) : do we want to reuse
parsers or create a new parser for each parse ?
Note : even if this parameter is true , parsers are not
recycled in case of parsing errors : some parsers (e.g. Xerces) don't like
to be reused after failure.
- sax-parser-factory (string, optional) : the name of the
SAXParserFactory
implementation class to be used instead of using the standard JAXP mechanism
(SAXParserFactory.newInstance() ). This allows to choose
unambiguously the JAXP implementation to be used when several of them are
available in the classpath.
- document-builder-factory (string, optional) : the name of the
DocumentBuilderFactory implementation to be used (similar to
sax-parser-factory for DOM).
author: Berin Loritsch author: Carsten Ziegeler author: Sylvain Wallez version: CVS $Id: JaxpParser.java 433543 2006-08-22 06:22:54Z crossley $ |
manager | protected ComponentManager manager(Code) | | the component manager
|
nsPrefixes | protected boolean nsPrefixes(Code) | | do we want namespaces also as attributes ?
|
reuseParsers | protected boolean reuseParsers(Code) | | do we want to reuse parsers ?
|
compose | public void compose(ComponentManager manager) throws ComponentException(Code) | | Get the Entity Resolver from the component manager
|
dispose | public void dispose()(Code) | | Dispose
|
newDocument | public Document newDocument()(Code) | | Create a new Document object.
|
newDocument | public Document newDocument(String name)(Code) | | Create a new Document object with a specified DOCTYPE.
|
newDocument | public Document newDocument(String name, String publicId, String systemId)(Code) | | Create a new Document object with a specified DOCTYPE, public ID and
system ID.
|
parameterize | public void parameterize(Parameters params) throws ParameterException(Code) | | Configure
|
setupDocumentBuilder | protected void setupDocumentBuilder()(Code) | | Creates a new DocumentBuilder if needed.
|
setupXMLReader | protected void setupXMLReader() throws SAXException(Code) | | Creates a new XMLReader if needed.
|
|
|