|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: �CONSTR�|� FUNCTION �|�DATA | DETAIL: �CONSTR�|� FUNCTION �|�DATA |
class IDtdHandler: public CInterface { public: enum { CDATA, ID, IDREF, IDREFS, ENTITY, ENTITIES, NMTOKEN, NMTOKENS, NOTATION, ENUMERATION }; enum { REQUIRED, IMPLIED, FIXED, DEFAULT }; public: virtual ~IDtdHandler(); public: virtual void AttributeDecl( const CString &strElementName, const CString &strAttributeName, int nType, int nDefaultType, const CString &strDefaultValue) = 0; virtual void UnparsedEntityDecl( const CString &strName, const CString &strPublicId, const CString &strSystemId, const CString &strNotationName) = 0; virtual void NotationDecl( const CString &strName, const CString &strPublicId, const CString &strSystemId) = 0; };
The abstract interface for receiving notifications of basic DTD-related events.
If an SXP application needs information about attributes,
notations, or unparsed entities, then the application implements this
interface and registers an instance with the SXP parser
using the parser's
IParser::SetDtdHandler
method. The parser uses the instance to report attributes,
notation, and unparsed entity declarations to the application.
The SXP parser may report these events in any order, regardless
the order in which the attributes, notations, and unparsed
entities were declared; however, all DTD events must be
reported after the document handler's
IDocumentHandler::StartDocument
event,
and before the first
IDocumentHandler::StartElement
event.
Constructor/Destructor Summary | |
~IDtdHandler
();
����������Destroys the DTD handler. |
Function Summary | |
void
|
AttributeDecl
(const CString &strElementName, const CString &strAttributeName, int nType, int nDefaultType, const CString &strDefaultValue);
����������Receives notification of an attribute declaration event. |
void
|
UnparsedEntityDecl
(const CString &strName, const CString &strPublicId, const CString &strSystemId, const CString &strNotationName);
����������Receives notification of an unparsed entity declaration event. |
void
|
NotationDecl
(const CString &strName, const CString &strPublicId, const CString &strSystemId);
����������Receives notification of a notation declaration event. |
Constructor/Destructor Detail |
virtual ~IDtdHandler();
Destroys the DTD handler.
Function Detail |
virtual void AttributeDecl( const CString &strElementName, const CString &strAttributeName, int nType, int nDefaultType, const CString &strDefaultValue) = 0;
Receives notification of an attribute declaration event.
Allowed values for the attribute type are
IDtdHandler::CDATA
,
IDtdHandler::ID
,
IDtdHandler::IDREF
,
IDtdHandler::IDREFS
,
IDtdHandler::ENTITY
,
IDtdHandler::ENTITIES
,
IDtdHandler::NMTOKEN
,
IDtdHandler::NMTOKENS
,
IDtdHandler::NOTATION
, and
IDtdHandler::ENUMERATION
.
Allowed values for the attribute's default value semantics are
IDtdHandler::REQUIRED
,
IDtdHandler::IMPLIED
,
IDtdHandler::FIXED
, and
IDtdHandler::DEFAULT
.
strElementName
- the name of the owner elementstrAttributeName
- the attribute namenType
- the attribute typenDefaultType
- the attribute's default value semanticsstrDefaultType
- the attribute's default value,
or the empty string of none was declaredvirtual void UnparsedEntityDecl( const CString &strName, const CString &strPublicId, const CString &strSystemId, const CString &strNotationName) = 0;
Receives notification of an unparsed entity declaration event.
strName
- the unparsed entity's namestrPublicId
- the entity's public identifier,
or the empty string if none was givenstrSystemId
- the entity's system identifierstrNotationName
- the name of the associated notationvirtual void NotationDecl( const CString &strName, const CString &strPublicId, const CString &strSystemId) = 0;
Receives notification of a notation declaration event.
strName
- the notation namestrPublicId
- the notation's public identifier,
or the empty string if none was givenstrSystemId
- the notation's public identifier,
or the empty string if none was given
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: �CONSTR�|� FUNCTION �|�DATA | DETAIL: �CONSTR�|� FUNCTION �|�DATA |