|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
�PREV CLASS��NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CDomDocumentHandler: public IDocumentHandler { public: CDomDocumentHandler( const XDocument &pDocument, bool bSupportNamespaces=true); ~CDomDocumentHandler(); public: void SetDocumentLocator(const XLocator &pLocator); void StartDocument(); void EndDocument(); void StartElement(const CString &strName); void EndElement(); void StartAttribute(const CString &strName); void EndAttribute(); void CharacterData( const WCHAR *pData, int nSize); void StartComment(); void EndComment(); void StartCdataSection(); void EndCdataSection(); void EntityReference(const CString &strName); void ProcessingInstruction( const CString &strTarget, const CString &strData); };
The document handler implementing SXP to DOM/XDM adapter.
The adapter reads the sequence of SXP document events and creates a DOM or XDM document based on the content supplied by these events.
Sxp::ILocator, Dom::IDocument
Constructor/Destructor Summary | |
CDomDocumentHandler
(const XDocument &pDocument, bool bSupportNamespaces=true);
����������Constructs the document handler. |
|
~CDomDocumentHandler
();
����������Destroys the document handler. |
Function Summary | |
void
|
SetDocumentLocator
(const XLocator &pLocator);
����������Receives the object for locating the origin of SXP document events. |
void
|
StartDocument
();
����������Receives notification of the beginning of a document. |
void
|
EndDocument
();
����������Receives notification of the end of a document. |
void
|
StartElement
(const CString &strName);
����������Receives notification of the beginning of an element. |
void
|
EndElement
();
����������Receives notification of the end of an element. |
void
|
StartAttribute
(const CString &strName);
����������Receives notification of the beginning of an attribute. |
void
|
EndAttribute
();
����������Receives notification of the end of an attribute. |
void
|
CharacterData
(const WCHAR *pData, int nSize);
����������Receives notification of character data. |
void
|
StartComment
();
����������Receives notification of the beginning of a comment. |
void
|
EndComment
();
����������Receives notification of the end of a comment. |
void
|
StartCdataSection
();
����������Receives notification of the beginning of a CDATA section. |
void
|
EndCdataSection
();
����������Receives notification of the end of a CDATA section. |
void
|
EntityReference
(const CString &strName);
����������Receives notification of an entity reference. |
void
|
ProcessingInstruction
(const CString &strTarget, const CString &strData);
����������Receives notification of a processing instruction. |
Constructor/Destructor Detail |
CDomDocumentHandler( const XDocument &pDocument, bool bSupportNamespaces=true);
Constructs the document handler.
pDocument
- the document node with no children;
this is the root of the document to be createdbSupportNamespaces
-
true
if the
target document conforms to XDM;
false
if the target
document conforms to DOM~CDomDocumentHandler();
Destroys the document handler.
Function Detail |
void SetDocumentLocator(const XLocator &pLocator);
Receives the object for locating the origin of SXP document events.
pLocator
- the locator objectvoid StartDocument();
Receives notification of the beginning of a document.
void EndDocument();
Receives notification of the end of a document.
void StartElement(const CString &strName);
Receives notification of the beginning of an element.
strName
- the element type namevoid EndElement();
Receives notification of the end of an element.
void StartAttribute(const CString &strName);
Receives notification of the beginning of an attribute.
strName
- the attribute namevoid EndAttribute();
Receives notification of the end of an attribute.
void CharacterData( const WCHAR *pData, int nSize);
Receives notification of character data.
pData
- the array of charactersnSize
- the number of characters
to read from the arrayvoid StartComment();
Receives notification of the beginning of a comment.
void EndComment();
Receives notification of the end of a comment.
void StartCdataSection();
Receives notification of the beginning of a CDATA section.
void EndCdataSection();
Receives notification of the end of a CDATA section.
void EntityReference(const CString &strName);
Receives notification of an entity reference.
strName
- the entity namevoid ProcessingInstruction( const CString &strTarget, const CString &strData);
Receives notification of a processing instruction.
strTarget
- the processing instruction targetstrData
- the processing instruction data;
the empty string if none was supplied
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
�PREV CLASS��NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |