|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: �CONSTR�|� FUNCTION �|�DATA | DETAIL: �CONSTR�|� FUNCTION �|�DATA |
class IElement: public INode { public: const WCHAR *GetTagName(); public: const WCHAR *GetAttribute(const WCHAR *pszName); void SetAttribute( const WCHAR *pszName, const WCHAR *pszValue); void RemoveAttribute(const WCHAR *pszName); XAttr GetAttributeNode(const WCHAR *pszName); XAttr SetAttributeNode(IAttr *pNewAttr); XAttr RemoveAttributeNode(IAttr *pOldAttr); XNodeList GetElementsByTagName(const WCHAR *pszTagName); const WCHAR *GetNamespace(const WCHAR *pszName); void SetNamespace( const WCHAR *pszName, const WCHAR *pszValue); void RemoveNamespace(const WCHAR *pszName); XNamespace GetNamespaceNode(const WCHAR *pszName); XNamespace SetNamespaceNode(INamespace *pNewNs); XNamespace RemoveNamespaceNode(INamespace *pOldNs); }; typedef XRefCnt<IElement> XElement;
The element node.
This class implements
the C++ binding for the
Element
interface
specified by DOM.
INodeList, IAttr, INamespace
Function Summary | |
const�WCHAR�*
|
GetTagName
();
����������Returns the tag name of this element. |
const�WCHAR�*
|
GetAttribute
(const WCHAR *pszName);
����������Returns the value of the attribute on this element, with the attribute name specified by pszName
. |
void
|
SetAttribute
(const WCHAR *pszName, const WCHAR *pszValue);
����������Sets an attribute on this element, with the attribute name specified by pszName
and the attribute value
specified by
pszValue
. |
void
|
RemoveAttribute
(const WCHAR *pszName);
����������Removes an attribute on this element, with the attribute name specified by pszName
. |
XAttr
|
GetAttributeNode
(const WCHAR *pszName);
����������Returns the attribute node on this element, with the attribute name specified by pszName
. |
XAttr
|
SetAttributeNode
(IAttr *pNewAttr);
����������Sets the attribute node specified by pNewAttr
on this element. |
XAttr
|
RemoveAttributeNode
(IAttr *pOldAttr);
����������Removes the attribute node specified by pOldAttr
from the attribute list of this element. |
XNodeList
|
GetElementsByTagName
(const WCHAR *pszTagName);
����������Returns the list of all descendant elements of this element, having the tag name specified by pszTagName
. |
const�WCHAR�*
|
GetNamespace
(const WCHAR *pszName);
����������Looks up the namespace prefix in the list of namespaces declared on this element; if found, returns the namespace URI bound to the specified namespace prefix. |
void
|
SetNamespace
(const WCHAR *pszName, const WCHAR *pszValue);
����������Sets a namespace declaration on this element, with the namespace prefix specified by pszName
and the namespace URI
specified by
pszValue
. |
void
|
RemoveNamespace
(const WCHAR *pszName);
����������Removes a namespace declaration on this element, with the namespace prefix specified by pszName
. |
XNamespace
|
GetNamespaceNode
(const WCHAR *pszName);
����������Returns a namespace node declared on this element, with the namespace prefix specified by pszName
. |
XNamespace
|
SetNamespaceNode
(INamespace *pNewNs);
����������Sets the namespace declaration specified by pNewNs
on this element. |
XNamespace
|
RemoveNamespaceNode
(INamespace *pOldNs);
����������Removes the namespace node specified by pOldNs
from the namespace list of this element. |
Function Detail |
const WCHAR *GetTagName();
Returns the tag name of this element.
This method implements the C++ binding
for the
tagName
attribute specified by
DOM.
const WCHAR *GetAttribute(const WCHAR *pszName);
Returns the value of the attribute on this element,
with the attribute name specified
by
pszName
.
This method implements the C++ binding
for the
getAttribute
operation specified by
DOM.
pszName
- the attribute namevoid SetAttribute( const WCHAR *pszName, const WCHAR *pszValue);
Sets an attribute on this element, with the attribute name
specified by
pszName
and the attribute value
specified by
pszValue
.
This method implements the C++ binding
for the
setAttribute
operation specified by
DOM.
This method is not supported by XDM.
pszName
- the attribute namepszValue
- the attribute valuevoid RemoveAttribute(const WCHAR *pszName);
Removes an attribute on this element, with the attribute name
specified by
pszName
.
This method implements the C++ binding
for the
removeAttribute
operation specified by
DOM.
pszName
- the attribute nameXAttr GetAttributeNode(const WCHAR *pszName);
Returns the attribute node on this element, with the attribute
name specified by
pszName
.
This method implements the C++ binding
for the
getAttributeNode
operation specified by
DOM.
This method is not supported by XDM.
pszName
- the attribute nameNULL
if there is no
such attributeXAttr SetAttributeNode(IAttr *pNewAttr);
Sets the attribute node specified by
pNewAttr
on this element.
If the attribute node with the same name is already defined on the element, it is replaced.
This method implements the C++ binding
for the
setAttributeNode
operation specified by
DOM.
This method is not supported by XDM.
pNewAttr
- the attribute node to setNULL
otherwiseXAttr RemoveAttributeNode(IAttr *pOldAttr);
Removes the attribute node specified by
pOldAttr
from the attribute list of this element.
This method implements the C++ binding
for the
removeAttributeNode
operation specified by
DOM.
This method is not supported by XDM.
pOldAttr
- the attribute node to removepOldAttr
)XNodeList GetElementsByTagName(const WCHAR *pszTagName);
Returns the list of all descendant elements of this element,
having the tag name specified by
pszTagName
.
This method implements the C++ binding
for the
getElementsByTagName
operation specified by
DOM.
At present this method is not implemented for any document model.
pszTagName
- the element tag name, or the special
value of
"*"
to select all descendant elementsconst WCHAR *GetNamespace(const WCHAR *pszName);
Looks up the namespace prefix in the list of namespaces declared on this element; if found, returns the namespace URI bound to the specified namespace prefix.
This is an extension XDM method which has no equivalent in DOM.
This method is not supported by DOM.
pszName
- the namespace prefix to look upvoid SetNamespace( const WCHAR *pszName, const WCHAR *pszValue);
Sets a namespace declaration on this element, with the namespace prefix
specified by
pszName
and the namespace URI
specified by
pszValue
.
This is an extension XDM method which has no equivalent in DOM.
At present this method is not implemented for any document model.
pszName
- the namespace prefixpszValue
- the namespace URIvoid RemoveNamespace(const WCHAR *pszName);
Removes a namespace declaration on this element, with the namespace prefix
specified by
pszName
.
This is an extension XDM method which has no equivalent in DOM.
At present this method is not implemented for any document model.
pszName
- the namespace prefixXNamespace GetNamespaceNode(const WCHAR *pszName);
Returns a namespace node declared on this element,
with the namespace prefix specified by
pszName
.
This is an extension XDM method which has no equivalent in DOM.
This method is not supported by DOM.
pszName
- the namespace prefixNULL
if there is no
such namespaceXNamespace SetNamespaceNode(INamespace *pNewNs);
Sets the namespace declaration specified by
pNewNs
on this element.
If a namespace node with the same prefix is already defined on this element, it is replaced.
This is an extension XDM method which has no equivalent in DOM.
At present this method is not supported for any document model.
pNewAttr
- the namespace node to setNULL
otherwiseXNamespace RemoveNamespaceNode(INamespace *pOldNs);
Removes the namespace node specified by
pOldNs
from the namespace list of this element.
This is an extension XDM method which has no equivalent in DOM.
At present this method is not supported for any document model.
pOldNs
- the namespace node to removepOldNs
)
|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: �CONSTR�|� FUNCTION �|�DATA | DETAIL: �CONSTR�|� FUNCTION �|�DATA |