|
OpenTop 1.3 | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||
SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD |
#include "ot/sax/DeclHandler.h"
This is an optional extension handler for SAX2 to provide information about DTD declarations in an XML document. XML readers are not required to support this handler, and this handler is not included in the core Java SAX2 distribution. The default XMLReader supplied with OpenTop does support the DeclHandler interface.
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 LexicalHandler::startDTD() and the LexicalHandler::endDTD() events.
To set the DeclHandler for an XML reader, use the XMLReader::setDeclHandler() method. This differs from the Java SAX 2.0 distribution, where it is necessary to to use a generic setProperty() method.
Method Summary | |
virtual void |
attributeDecl(const String& eName, const String& aName, const String& type, const String& valueDefault, const String& value)=0 Report an attribute type declaration. |
virtual void |
elementDecl(const String& name, const String& model)=0 Report an element type declaration. |
virtual void |
externalEntityDecl(const String& name, const String& publicId, const String& systemId)=0 Report a parsed external entity declaration. |
virtual void |
internalEntityDecl(const String& name, const String& value)=0 Report an internal entity declaration. |
Methods inherited from class ot::ManagedObject |
addRef, getRefCount, onFinalRelease, operator=, release |
Method Detail |
virtual void attributeDecl(const String& eName, const String& aName, const String& type, const String& valueDefault, const String& value)=0
Any parameter entities in the attribute value will be expanded, but general entities will not.
eName
- aName
- type
- valueDefault
- value
- SAXException
- virtual void elementDecl(const String& name, const String& model)=0
name
- model
- SAXException
- virtual void externalEntityDecl(const String& name, const String& publicId, const String& systemId)=0
name
- publicId
- systemId
- SAXException
- virtual void internalEntityDecl(const String& name, const String& value)=0
name
- value
- SAXException
-
|
OpenTop 1.3 | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||
SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD |