|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class IDocument: virtual public INode { public: IDocument(); virtual ~IDocument(); public: virtual XDocumentType GetDoctype() = 0; virtual XDomImplementation GetImplementation() = 0; virtual XElement GetDocumentElement() = 0; public: virtual XElement CreateElement(const CString &strTagName) = 0; virtual XDocumentFragment CreateDocumentFragment() = 0; virtual XText CreateTextNode(const CString &strData) = 0; virtual XComment CreateComment(const CString &strData) = 0; virtual XCdataSection CreateCdataSection( const CString &strData) = 0; virtual XProcessingInstruction CreateProcessingInstruction( const CString &strTarget, const CString &strData) = 0; virtual XAttr CreateAttribute(const CString &strName) = 0; virtual XEntityReference CreateEntityReference( const CString &strName) = 0; virtual XNodeList GetElementsByTagName( const CString &strTagName) = 0; virtual XNamespace CreateNamespace(const CString &strName) = 0; };
The entire XML document.
This class implements
the C++ binding for the
Document
interface
specified by DOM.
INodeList, IDomImplementation, IDocumentFragment, IAttr, IElement, IText, IComment, IDoctype, INode, IEntityReference, IProcessingInstruction, INamespace
Constructor/Destructor Summary | |
IDocument
();
����������Constructs the document. |
|
~IDocument
();
����������Destroys the document. |
Function Summary | |
XDocumentType
|
GetDoctype
();
����������Returns the document type object associated with this document. |
XDomImplementation
|
GetImplementation
();
����������Returns the DOM implementation object associated with this document. |
XElement
|
GetDocumentElement
();
����������Returns the document element of this document. |
XElement
|
CreateElement
(const CString &strTagName);
����������Creates a new element with the tag name specified by strTagName
. |
XDocumentFragment
|
CreateDocumentFragment
();
����������Creates a document fragment. |
XText
|
CreateTextNode
(const CString &strData);
����������Creates a new text node with the content specified by strData
. |
XComment
|
CreateComment
(const CString &strData);
����������Creates a new comment with the content specified by strData
. |
XCdataSection
|
CreateCdataSection
(const CString &strData);
����������Creates a new CDATA section with the content specified by strData
. |
XProcessingInstruction
|
CreateProcessingInstruction
(const CString &strTarget, const CString &strData);
����������Creates a new processing instruction with the target specified by strTarget
and the data specified by
strData
. |
XAttr
|
CreateAttribute
(const CString &strName);
����������Creates a new attribute with the name specified by strName
. |
XEntityReference
|
CreateEntityReference
(const CString &strName);
����������Creates a new entity reference with the name specified by strName
. |
XNodeList
|
GetElementsByTagName
(const CString &strTagName);
����������Returns the list of all elements having the tag name specified by strTagName
. |
XNamespace
|
CreateNamespace
(const CString &strName);
����������Creates a new namespace node with the namespace prefix specified by strName
. |
Constructor/Destructor Detail |
IDocument();
Constructs the document.
virtual ~IDocument();
Destroys the document.
Function Detail |
virtual XDocumentType GetDoctype() = 0;
Returns the document type object associated with this document.
This method implements the C++ binding
for the
doctype
attribute specified by
DOM.
NULL
if the document type
is not availablevirtual XDomImplementation GetImplementation() = 0;
Returns the DOM implementation object associated with this document.
This method implements the C++ binding
for the
implementation
attribute specified by
DOM.
virtual XElement GetDocumentElement() = 0;
Returns the document element of this document.
This method implements the C++ binding
for the
documentElement
attribute specified by
DOM.
NULL
if the document element is not yet
available (for example, when the document is under construction)virtual XElement CreateElement(const CString &strTagName) = 0;
Creates a new element with the tag name specified by
strTagName
.
This method implements the C++ binding
for the
createElement
operation specified by
DOM.
strTagName
- the element tag namevirtual XDocumentFragment CreateDocumentFragment() = 0;
Creates a document fragment.
This method implements the C++ binding
for the
createDocumentFragment
operation specified by
DOM.
virtual XText CreateTextNode(const CString &strData) = 0;
Creates a new text node with the content specified by
strData
.
This method implements the C++ binding
for the
createTextNode
operation specified by
DOM.
strData
- the content of the text nodevirtual XComment CreateComment(const CString &strData) = 0;
Creates a new comment with the content specified by
strData
.
This method implements the C++ binding
for the
createComment
operation specified by
DOM.
strData
- the content of the commentvirtual XCdataSection CreateCdataSection( const CString &strData) = 0;
Creates a new CDATA section with the content specified by
strData
.
This method implements the C++ binding
for the
createCDATASection
operation specified by
DOM.
strData
- the content of the CDATA sectionvirtual XProcessingInstruction CreateProcessingInstruction( const CString &strTarget, const CString &strData) = 0;
Creates a new processing instruction with the target specified by
strTarget
and the data specified by
strData
.
This method implements the C++ binding
for the
createProcessingInstruction
operation
specified by DOM.
strTarget
- the processing instruction targetstrData
- the processing instruction data
(empty string if no data required)virtual XAttr CreateAttribute(const CString &strName) = 0;
Creates a new attribute with the name specified by
strName
.
This method implements the C++ binding
for the
createAttribute
operation specified by
DOM.
strName
- the attribute namevirtual XEntityReference CreateEntityReference( const CString &strName) = 0;
Creates a new entity reference with the name specified by
strName
.
This method implements the C++ binding
for the
createEntityReference
operation specified by
DOM.
strName
- the entity reference namevirtual XNodeList GetElementsByTagName( const CString &strTagName) = 0;
Returns the list of all elements having the tag name specified by
strTagName
.
This method implements the C++ binding
for the
getElementsByTagName
operation specified by
DOM.
strTagName
- the element tag name, or the special
value of
"*"
to select all document elementsvirtual XNamespace CreateNamespace(const CString &strName) = 0;
Creates a new namespace node with the namespace prefix specified
by
strName
.
This extension XDM method has no direct equivalent in DOM. It is applicable only if this document supports XDM extensions.
strName
- the namespace prefix
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |