Inheritance diagram for DeclHandler:
Public Methods | |
Constructors and Destructor | |
DeclHandler () | |
virtual | ~DeclHandler () |
The virtual declaration handler interface | |
virtual void | elementDecl (const XMLCh *const name, const XMLCh *const model)=0 |
virtual void | attributeDecl (const XMLCh *const eName, const XMLCh *const aName, const XMLCh *const type, const XMLCh *const mode, const XMLCh *const value)=0 |
virtual void | internalEntityDecl (const XMLCh *const name, const XMLCh *const value)=0 |
virtual void | externalEntityDecl (const XMLCh *const name, const XMLCh *const publicId, const XMLCh *const systemId)=0 |
This is an optional extension handler for SAX2 to provide more complete information about DTD declarations in an XML document. XML readers are not required to recognize this handler, and it is not part of core-only SAX2 distributions.
Note that data-related DTD declarations (unparsed entities and notations) are already reported through the DTDHandler interface.
If you are using the declaration handler together with a lexical handler, all of the events will occur between the startDTD and the endDTD events.
SAX2XMLReader#setDeclarationHandler
|
Default constructor |
|
Destructor |
|
Report an attribute type declaration. The Parser will call this method to report each occurence of a comment in the XML document. The application must not attempt to read from the array outside of the specified range.
Implemented in DefaultHandler. |
|
Report an element type declaration. The content model will consist of the string "EMPTY", the string "ANY", or a parenthesised group, optionally followed by an occurrence indicator. The model will be normalized so that all parameter entities are fully resolved and all whitespace is removed,and will include the enclosing parentheses. Other normalization (such as removing redundant parentheses or simplifying occurrence indicators) is at the discretion of the parser.
Implemented in DefaultHandler. |
|
Report a parsed external entity declaration. Only the effective (first) declaration for each entity will be reported.
Implemented in DefaultHandler. |
|
Report an internal entity declaration. Only the effective (first) declaration for each entity will be reported. All parameter entities in the value will be expanded, but general entities will not.
Implemented in DefaultHandler. |