#include <rdXMLNode.h>
Static Public Member Functions | |
| int | GetNumberOfParents (const IDOM_Node *node) |
| Get the number of paraents a node has. | |
| IDOM_Element * | AppendNewElement (IDOM_Node *node, const char *aTag, const char *aName=NULL) |
| Create a new element and add it as a child to a specified parent node. | |
| IDOM_Element * | GetFirstChildElementByTagName (const IDOM_Node *aNode, const char *aTagName) |
| Get the first child of this node that is an element and has the specified tag name. | |
| IDOM_CharacterData * | GetCDataSectionNode (const IDOM_Node *aNode) |
| Get the last character data section node associated with a specified node. | |
| IDOM_Text * | GetTextNode (const IDOM_Node *aNode) |
| Get the last text node of a specified node. | |
| bool | GetBool (const IDOM_Node *aNode) |
| int | GetInt (const IDOM_Node *aNode) |
| Interpret the value of this node as an int. | |
| double | GetDbl (const IDOM_Node *aNode) |
| Interpret the value of this node as a double. | |
| char * | GetStr (const IDOM_Node *aNode) |
| Interpret the value of this node as string (char *). | |
| void | SetBoolArray (IDOM_Node *aNode, int aN, const bool *aData) |
| Set the text of a node to represent an array of booleans. | |
| int | GetBoolArray (const IDOM_Node *aNode, bool *&rData) |
| Interpret the value of this node as an array of boolean variables. | |
| void | SetIntArray (IDOM_Node *aNode, int aN, const int *aData) |
| Set the text of a node to represent an array of ints. | |
| int | GetIntArray (const IDOM_Node *aNode, int *&rData) |
| Interpret the value of this node as an array of ints. | |
| void | SetDblArray (IDOM_Node *aNode, int aN, const double *aData) |
| Set the text of a node to represent an array of doubles. | |
| int | GetDblArray (const IDOM_Node *aNode, double *&rData) |
| Interpret the value of this node as an array of doubles. | |
| void | SetStrArray (IDOM_Node *aNode, int aN, char **rData) |
| Set the text of a node to represent an array of strings. | |
| int | GetStrArray (const IDOM_Node *aNode, char **&rData) |
| Interpret the value of this node as an array of strings. | |
| void | SetAttribute (IDOM_Node *aNode, const char *aName, const char *aValue) |
| Set an attribute on an element node. | |
| char * | GetAttribute (IDOM_Node *aNode, const char *aName) |
| Get an attribute of an element node. | |
Static Private Attributes | |
| const int | TABLIMIT = 128 |
The methods in this class are generally static methods that take an IDOM_Node as their first argument.
This product includes software developed by the Apache Software Foundation (http://www.apache.org/).
|
||||||||||||||||
|
Create a new element and add it as a child to a specified parent node.
|
|
||||||||||||
|
Get an attribute of an element node. This method only operates on element nodes. If the node sent in is not an element node, no action is taken. |
|
||||||||||||
|
Interpret the value of this node as an array of boolean variables. If the specified node is a text node (IDOM_Text) then it itself is interpretted. However, if the specified node is any other type of node (for example, an element node (IDOM_Element)), the data is interpretted from the specified node's last child that is a text node. If the specified node has no such child, rData is set to NULL and 0 is returned. The caller is responsible for deleting the returned array.
|
|
|
Get the last character data section node associated with a specified node.
|
|
|
Interpret the value of this node as a double. If the specified node is a text node (IDOM_Text) then it itself is interpretted. However, if the specified node is any other type of node (for example, an element node (IDOM_Element)), the data is interpretted from the specified node's last child that is a text node. If the specified node has no such child, 0 is returned.
|
|
||||||||||||
|
Interpret the value of this node as an array of doubles. If the specified node is a text node (IDOM_Text) then it itself is interpretted. However, if the specified node is any other type of node (for example, an element node (IDOM_Element)), the data is interpretted from the specified node's last child that is a text node. If the specified node has no such child, rData is set to NULL and 0 is returned. The caller is responsible for deleting the returned array.
|
|
||||||||||||
|
Get the first child of this node that is an element and has the specified tag name.
|
|
|
Interpret the value of this node as an int. If the specified node is a text node (IDOM_Text) then it itself is interpretted. However, if the specified node is any other type of node (for example, an element node (IDOM_Element)), the data is interpretted from the specified node's last child that is a text node. If the specified node has no such child, 0 is returned.
|
|
||||||||||||
|
Interpret the value of this node as an array of ints. If the specified node is a text node (IDOM_Text) then it itself is interpretted. However, if the specified node is any other type of node (for example, an element node (IDOM_Element)), the data is interpretted from the specified node's last child that is a text node. If the specified node has no such child, rData is set to NULL and 0 is returned. The caller is responsible for deleting the returned array.
|
|
|
Get the number of paraents a node has. The owner document is included in this count.
|
|
|
Interpret the value of this node as string (char *). If the specified node is a text node (IDOM_Text) then it itself is interpretted. However, if the specified node is any other type of node (for example, an element node (IDOM_Element)), the data is interpretted from the specified node's last child that is a text node. If the specified node has no such child, rData is set to NULL and 0 is returned. Note that the caller is responsible for deleting the returned string.
|
|
||||||||||||
|
Interpret the value of this node as an array of strings. If the specified node is a text node (IDOM_Text) then it itself is interpretted. However, if the specified node is any other type of node (for example, an element node (IDOM_Element)), the data is interpretted from the specified node's last child that is a text node. If the specified node has no such child, rData is set to NULL and 0 is returned. The caller is responsible for deleting the individual strings in the array as well as the array.
|
|
|
Get the last text node of a specified node.
|
|
||||||||||||||||
|
Set an attribute on an element node. This method only operates on element nodes. If the node sent in is not an element node, no action is taken. |
|
||||||||||||||||
|
Set the text of a node to represent an array of booleans. If the specified node is a text node (IDOM_Text) then it itself is modified. However, if the specified node is any other type of node (for example, an element node (IDOM_Element)), the data is set on the specified node's last child that is a text node. If the specified node has no such child, a new text node is created and appended to the specified node as a child.
|
|
||||||||||||||||
|
Set the text of a node to represent an array of doubles. If the specified node is a text node (IDOM_Text) then it itself is modified. However, if the specified node is any other type of node (for example, an element node (IDOM_Element)), the data is set on the specified node's last child that is a text node. If the specified node has no such child, a new text node is created and appended to the specified node as a child.
|
|
||||||||||||||||
|
Set the text of a node to represent an array of ints. If the specified node is a text node (IDOM_Text) then it itself is modified. However, if the specified node is any other type of node (for example, an element node (IDOM_Element)), the data is set on the specified node's last child that is a text node. If the specified node has no such child, a new text node is created and appended to the specified node as a child.
|
|
||||||||||||||||
|
Set the text of a node to represent an array of strings. If the specified node is a text node (IDOM_Text) then it itself is modified. However, if the specified node is any other type of node (for example, an element node (IDOM_Element)), the data is set on the specified node's last child that is a text node. If the specified node has no such child, a new text node is created and added to the specified node as a child.
|
1.3