XMLDocumentParserpublic 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. |
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.XIncludeAwareParserConfiguration"
));
| 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.XIncludeAwareParserConfiguration"
));
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.XIncludeAwareParserConfiguration"
));
fConfiguration.setProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.SYMBOL_TABLE_PROPERTY, symbolTable);
fConfiguration.setProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.XMLGRAMMAR_POOL_PROPERTY, grammarPool);
|
|