Functions | |
XMLCSTR | XMLNode::getName () const |
name of the node | |
XMLCSTR | XMLNode::getText (int i=0) const |
return ith text field | |
int | XMLNode::nText () const |
nbr of text field | |
XMLNode | XMLNode::getParentNode () const |
return the parent node | |
XMLNode | XMLNode::getChildNode (int i=0) const |
return ith child node | |
XMLNode | XMLNode::getChildNode (XMLCSTR name, int i) const |
return ith child node with specific name (return an empty node if failing). If i==-1, this returns the last XMLNode with the given name. | |
XMLNode | XMLNode::getChildNode (XMLCSTR name, int *i=NULL) const |
return next child node with specific name (return an empty node if failing) | |
XMLNode | XMLNode::getChildNodeWithAttribute (XMLCSTR tagName, XMLCSTR attributeName, XMLCSTR attributeValue=NULL, int *i=NULL) const |
return child node with specific name/attribute (return an empty node if failing) | |
XMLNode | XMLNode::getChildNodeByPath (XMLCSTR path, char createNodeIfMissing=0, XMLCHAR sep='/') |
return the first child node with specific path | |
XMLNode | XMLNode::getChildNodeByPathNonConst (XMLSTR path, char createNodeIfMissing=0, XMLCHAR sep='/') |
return the first child node with specific path. WARNING: the value of the parameter "path" is destroyed! | |
int | XMLNode::nChildNode (XMLCSTR name) const |
return the number of child node with specific name | |
int | XMLNode::nChildNode () const |
nbr of child node | |
XMLAttribute | XMLNode::getAttribute (int i=0) const |
return ith attribute | |
XMLCSTR | XMLNode::getAttributeName (int i=0) const |
return ith attribute name | |
XMLCSTR | XMLNode::getAttributeValue (int i=0) const |
return ith attribute value | |
char | XMLNode::isAttributeSet (XMLCSTR name) const |
test if an attribute with a specific name is given | |
XMLCSTR | XMLNode::getAttribute (XMLCSTR name, int i) const |
return ith attribute content with specific name (return a NULL if failing) | |
XMLCSTR | XMLNode::getAttribute (XMLCSTR name, int *i=NULL) const |
return next attribute content with specific name (return a NULL if failing) | |
int | XMLNode::nAttribute () const |
nbr of attribute | |
XMLClear | XMLNode::getClear (int i=0) const |
return ith clear field (comments) | |
int | XMLNode::nClear () const |
nbr of clear field | |
XMLNodeContents | XMLNode::enumContents (XMLElementPosition i) const |
enumerate all the different contents (attribute,child,text, clear) of the current XMLNode. The order is reflecting the order of the original file/string. NOTE: 0 <= i < nElement(); | |
int | XMLNode::nElement () const |
nbr of different contents for current node | |
char | XMLNode::isEmpty () const |
is this node Empty? | |
char | XMLNode::isDeclaration () const |
is this node a declaration <? .... ?> | |
XMLNode | XMLNode::deepCopy () const |
deep copy (duplicate/clone) a XMLNode | |
static XMLNode | XMLNode::emptyNode () |
return XMLNode::emptyXMLNode; |
static XMLNode XMLNode::emptyNode | ( | ) | [static, inherited] |
return XMLNode::emptyXMLNode;
XMLNodeContents XMLNode::enumContents | ( | XMLElementPosition | i | ) | const [inherited] |
enumerate all the different contents (attribute,child,text, clear) of the current XMLNode. The order is reflecting the order of the original file/string. NOTE: 0 <= i < nElement();
XMLCSTR XMLNode::getAttribute | ( | XMLCSTR | name, | |
int * | i = NULL | |||
) | const [inherited] |
return next attribute content with specific name (return a NULL if failing)
XMLCSTR XMLNode::getAttribute | ( | XMLCSTR | name, | |
int | i | |||
) | const [inherited] |
return ith attribute content with specific name (return a NULL if failing)
XMLAttribute XMLNode::getAttribute | ( | int | i = 0 |
) | const [inherited] |
return ith attribute
XMLCSTR XMLNode::getAttributeName | ( | int | i = 0 |
) | const [inherited] |
return ith attribute name
XMLCSTR XMLNode::getAttributeValue | ( | int | i = 0 |
) | const [inherited] |
return ith attribute value
XMLNode XMLNode::getChildNode | ( | XMLCSTR | name, | |
int * | i = NULL | |||
) | const [inherited] |
return next child node with specific name (return an empty node if failing)
XMLNode XMLNode::getChildNode | ( | XMLCSTR | name, | |
int | i | |||
) | const [inherited] |
return ith child node with specific name (return an empty node if failing). If i==-1, this returns the last XMLNode with the given name.
XMLNode XMLNode::getChildNode | ( | int | i = 0 |
) | const [inherited] |
return ith child node
XMLNode XMLNode::getChildNodeByPath | ( | XMLCSTR | path, | |
char | createNodeIfMissing = 0 , |
|||
XMLCHAR | sep = '/' | |||
) | [inherited] |
return the first child node with specific path
XMLNode XMLNode::getChildNodeByPathNonConst | ( | XMLSTR | path, | |
char | createNodeIfMissing = 0 , |
|||
XMLCHAR | sep = '/' | |||
) | [inherited] |
return the first child node with specific path. WARNING: the value of the parameter "path" is destroyed!
XMLNode XMLNode::getChildNodeWithAttribute | ( | XMLCSTR | tagName, | |
XMLCSTR | attributeName, | |||
XMLCSTR | attributeValue = NULL , |
|||
int * | i = NULL | |||
) | const [inherited] |
return child node with specific name/attribute (return an empty node if failing)
XMLClear XMLNode::getClear | ( | int | i = 0 |
) | const [inherited] |
return ith clear field (comments)
XMLCSTR XMLNode::getName | ( | ) | const [inherited] |
name of the node
XMLNode XMLNode::getParentNode | ( | ) | const [inherited] |
return the parent node
XMLCSTR XMLNode::getText | ( | int | i = 0 |
) | const [inherited] |
return ith text field
char XMLNode::isAttributeSet | ( | XMLCSTR | name | ) | const [inherited] |
test if an attribute with a specific name is given
char XMLNode::isDeclaration | ( | ) | const [inherited] |
is this node a declaration <? .... ?>
char XMLNode::isEmpty | ( | ) | const [inherited] |
is this node Empty?
int XMLNode::nAttribute | ( | ) | const [inherited] |
nbr of attribute
int XMLNode::nChildNode | ( | ) | const [inherited] |
nbr of child node
int XMLNode::nChildNode | ( | XMLCSTR | name | ) | const [inherited] |
return the number of child node with specific name
int XMLNode::nClear | ( | ) | const [inherited] |
nbr of clear field
int XMLNode::nElement | ( | ) | const [inherited] |
nbr of different contents for current node
int XMLNode::nText | ( | ) | const [inherited] |
nbr of text field