org.apache.xerces.impl.dtd

Class XML11DTDProcessor

Implemented Interfaces:
org.apache.xerces.xni.parser.XMLComponent, org.apache.xerces.xni.parser.XMLDTDContentModelFilter, org.apache.xerces.xni.parser.XMLDTDFilter, org.apache.xerces.xni.grammars.XMLGrammarLoader

public class XML11DTDProcessor
extends XMLDTDLoader

This class extends XMLDTDProcessor by giving it the ability to parse XML 1.1 documents correctly. It can also be used as a DTD loader, so that XML 1.1 external subsets can be processed correctly (hence it's rather anomalous-appearing derivation from XMLDTDLoader).
Version:
$Id: XML11DTDProcessor.java,v 1.4 2004/10/04 21:57:30 mrglavas Exp $
Author:
Neil Graham, IBM

Field Summary

Fields inherited from class org.apache.xerces.impl.dtd.XMLDTDLoader

ENTITY_RESOLVER, ERROR_HANDLER, STANDARD_URI_CONFORMANT_FEATURE, fDTDScanner, fEntityManager, fEntityResolver, fLocale

Fields inherited from class org.apache.xerces.impl.dtd.XMLDTDProcessor

DTD_VALIDATOR, ERROR_REPORTER, GRAMMAR_POOL, NOTIFY_CHAR_REFS, PARSER_SETTINGS, SYMBOL_TABLE, VALIDATION, WARN_ON_DUPLICATE_ATTDEF, fDTDContentModelHandler, fDTDContentModelSource, fDTDGrammar, fDTDHandler, fDTDSource, fDTDValidation, fErrorReporter, fGrammarBucket, fGrammarPool, fInDTDIgnore, fLocale, fSymbolTable, fValidation, fValidator, fWarnDuplicateAttdef

Constructor Summary

XML11DTDProcessor()
Deny default construction; we need a SymtolTable!
XML11DTDProcessor(SymbolTable symbolTable)
XML11DTDProcessor(SymbolTable symbolTable, org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)

Method Summary

protected boolean
isValidName(String name)
protected boolean
isValidNmtoken(String nmtoken)

Methods inherited from class org.apache.xerces.impl.dtd.XMLDTDLoader

getEntityResolver, getErrorHandler, getFeature, getLocale, getProperty, getRecognizedProperties, loadGrammar, reset, setEntityResolver, setErrorHandler, setFeature, setLocale, setProperty

Methods inherited from class org.apache.xerces.impl.dtd.XMLDTDProcessor

any, attributeDecl, checkStandaloneEntityRef, comment, element, elementDecl, empty, endAttlist, endConditional, endContentModel, endDTD, endExternalSubset, endGroup, endParameterEntity, externalEntityDecl, getDTDContentModelHandler, getDTDContentModelSource, getDTDHandler, getDTDSource, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, ignoredCharacters, internalEntityDecl, isValidName, isValidNmtoken, notationDecl, occurrence, pcdata, processingInstruction, reset, reset, separator, setDTDContentModelHandler, setDTDContentModelSource, setDTDHandler, setDTDSource, setFeature, setProperty, startAttlist, startConditional, startContentModel, startDTD, startExternalSubset, startGroup, startParameterEntity, textDecl, unparsedEntityDecl

Constructor Details

XML11DTDProcessor

public XML11DTDProcessor()
Deny default construction; we need a SymtolTable!

XML11DTDProcessor

public XML11DTDProcessor(SymbolTable symbolTable)

XML11DTDProcessor

public XML11DTDProcessor(SymbolTable symbolTable,
                         org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)

Method Details

isValidName

protected boolean isValidName(String name)
Overrides:
isValidName in interface XMLDTDProcessor

isValidNmtoken

protected boolean isValidNmtoken(String nmtoken)
Overrides:
isValidNmtoken in interface XMLDTDProcessor

Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.