FileDocCategorySizeDatePackage
XMLDocumentParser.javaAPI DocJava SE 5 API5318Fri Aug 26 14:55:54 BST 2005com.sun.org.apache.xerces.internal.parsers

XMLDocumentParser

public class XMLDocumentParser extends AbstractXMLDocumentParser
This is a concrete vanilla XML parser class. It uses the abstract parser with either a BasicConfiguration object or the one specified by the application.
author
Arnaud Le Hors, IBM
author
Andy Clark, IBM
version
$Id: XMLDocumentParser.java,v 1.9 2004/02/17 07:14:49 neeraj Exp $

Fields Summary
Constructors Summary
public XMLDocumentParser()
Constructs a document parser using the default basic parser configuration.

        super((XMLParserConfiguration)ObjectFactory.createObject(
            "com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration",
            "com.sun.org.apache.xerces.internal.parsers.XML11Configuration"
            ));
    
public XMLDocumentParser(XMLParserConfiguration config)
Constructs a document parser using the specified parser configuration.

        super(config);
    
public XMLDocumentParser(SymbolTable symbolTable)
Constructs a document parser using the specified symbol table.

        super((XMLParserConfiguration)ObjectFactory.createObject(
            "com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration",
            "com.sun.org.apache.xerces.internal.parsers.XML11Configuration"
            ));
        fConfiguration.setProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.SYMBOL_TABLE_PROPERTY, symbolTable);
    
public XMLDocumentParser(SymbolTable symbolTable, XMLGrammarPool grammarPool)
Constructs a document parser using the specified symbol table and grammar pool.

        super((XMLParserConfiguration)ObjectFactory.createObject(
            "com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration",
            "com.sun.org.apache.xerces.internal.parsers.XML11Configuration"
            ));
        fConfiguration.setProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.SYMBOL_TABLE_PROPERTY, symbolTable);
        fConfiguration.setProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.XMLGRAMMAR_POOL_PROPERTY, grammarPool);
    
Methods Summary