|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: �CONSTR�|� FUNCTION �|�DATA | DETAIL: �CONSTR�|� FUNCTION �|�DATA |
class INamedNodeMap { public: int GetLength(); public: XNode GetNamedItem(const WCHAR *pszName); XNode SetNamedItem(INode *pArg); XNode RemoveNamedItem(const WCHAR *pszName); XNode Item(int nIndex); }; typedef XRefCnt<INamedNodeMap> XNamedNodeMap;
The collection of nodes that can be accessed by name.
This class implements
the C++ binding for the
NamedNodeMap
interface
specified by DOM.
INode
Function Summary | |
int
|
GetLength
();
����������Returns the number of nodes in this named node map. |
XNode
|
GetNamedItem
(const WCHAR *pszName);
����������Returns the node with the name specified by pszName
in this named node map. |
XNode
|
SetNamedItem
(INode *pArg);
����������If the node with the same name as the node specified by pArg
already exists in this named node map, replaces
that node with
pArg
; otherwise
adds the node specified by
pArg
to this named node map. |
XNode
|
RemoveNamedItem
(const WCHAR *pszName);
����������Removes the node with the name specified by pszName
from this named node map. |
XNode
|
Item
(int nIndex);
����������Returns the node in this named node map at the index specified by nIndex
. |
Function Detail |
int GetLength();
Returns the number of nodes in this named node map.
This method implements the C++ binding
for the
length
attribute specified by
DOM.
XNode GetNamedItem(const WCHAR *pszName);
Returns the node with the name specified by
pszName
in this named node map.
This method implements the C++ binding
for the
getNamedItem
operation specified by
DOM.
pszName
- the node nameNULL
if there is no such nodeXNode SetNamedItem(INode *pArg);
If the node with the same name as the node specified by
pArg
already exists in this named node map, replaces
that node with
pArg
; otherwise
adds the node specified by
pArg
to this named node map.
This method implements the C++ binding
for the
setNamedItem
operation specified by
DOM.
This method is not supported by XDM.
pArg
- the node to addNULL
otherwiseXNode RemoveNamedItem(const WCHAR *pszName);
Removes the node with the name specified by
pszName
from this named node map.
This method implements the C++ binding
for the
removeNamedItem
operation specified by
DOM.
This method is not supported by XDM.
pszName
- the name of the node to removeXNode Item(int nIndex);
Returns the node in this named node map
at the index specified by
nIndex
.
This method implements the C++ binding
for the
item
operation specified by
DOM.
nIndex
- the node index (zero-based)
|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: �CONSTR�|� FUNCTION �|�DATA | DETAIL: �CONSTR�|� FUNCTION �|�DATA |