This abstract class defines the document type handler API's which can be used to process the dtd events generated by the scanner as it parses the dtd
![]() | Constructors and Destructor.
| ||||||||||||||||||||||||||||||||
![]() | The document type handler interface.
|
This abstract class defines the document type handler API's which can be used to process the dtd events generated by the scanner as it parses the dtd.
virtual void doctypeComment( const XMLCh* const comment, const unsigned int startSrcOfs, const unsigned int endSrcOfs )
virtual void doctypeDecl( const XMLCh* const rootElemName, const XMLCh* const publicId, const XMLCh* const systemId )
publicId - The public id of the DTD file.
systemId - The system id of the DTD file. virtual void doctypePI( const XMLCh* const target, const XMLCh* const data, const unsigned int startSrcOfs, const unsigned int endSrcOfs )
data - The data of the PI. virtual void doctypeWhitespace( const XMLCh* const chars, const unsigned int length )
length - The length of the valid data in the chars
parameter. virtual void elementDecl( const ElementDecl& decl, const bool isIgnored, const unsigned int startSrcOfs, const unsigned int endSrcOfs )
isIgnored - This flag indicates whether this definition was
ignored or not. If true, it indicates that this was
a duplication definition in the DTD and hence its
ignored. When false, it indicates that the element
definition will be included for further processing
of the XML file. virtual void endAttList( const ElementDecl& elemDecl, const unsigned int srcOfs )
virtual void endIntSubset()
virtual void endExtSubset()
virtual void entityDecl( const EntityDecl& entityDecl, const bool isPEDecl, const bool isIgnored, const unsigned int startSrcOfs, const unsigned int endSrcOfs )
isPEDecl - If true, indicates a parameter entity definition.
If false, indicates a general entity definition.
isIgnored - This flag indicates whether this definition was
ignored or not. If true, it indicates that this was
a duplication definition in the DTD and hence its
ignored. When false, it indicates that the entity
definition will be included for further processing
of the XML file. virtual void resetDocType()
virtual void notationDecl( const XMLCh* const name, const XMLCh* const pubId, const XMLCh* const sysId, const bool isIgnored, const unsigned int startSrcOfs, const unsigned int endSrcOfs )
pubId - The public id for this notation.
sysId - The system id for this notation.
isIgnored - This flag indicates whether this definition was
ignored or not. If true, it indicates that this was
a duplication definition in the DTD and hence its
ignored. When false, it indicates that this notation
definition will be included for further processing
of the XML file. virtual void startAttList( const ElementDecl& elemDecl, const unsigned int srcOfs )
virtual void startIntSubset()
virtual void startExtSubset()
virtual void TextDecl( const XMLCh* const versionStr, const XMLCh* const encodingStr, const unsigned int startSrcOfs, const unsigned int endSrcOfs )
encodingStr - The encoding string found in the encoding attribute.
void operator=(const XMLDocumentTypeHandler&)
alphabetic index hierarchy of classes
XML Parser for C++ 2.0 Copyright © IBM Corp, 1999 Center for Java Technology 10275 N. De Anza Blvd. Cupertino CA 95014 USA Email: xml4c@us.ibm.com |
|