IncredibleXMLParser
3.05
|
Main Class representing a Incredible Transient Constant XML node. More...
#include <IXMLParser.h>
Public Member Functions | |
IXMLCStr | getName () const |
name of the node More... | |
IXMLCStr | getText (int i=0) const |
return ith text field More... | |
int | nText () const |
nbr of text field More... | |
ITCXMLNode | getParentNode () const |
return the parent node More... | |
ITCXMLNode | getChildNode (int i=0) const |
return ith child node More... | |
ITCXMLNode | getChildNode (IXMLCStr name, int i) const |
return ith child node with specific name (return an empty node if failing). If i==-1, this returns the last IXMLNode with the given name More... | |
ITCXMLNode | getChildNode (IXMLCStr name, int *i=NULL) const |
return next child node with specific name (return an empty node if failing) More... | |
ITCXMLNode | getChildNodeWithAttribute (IXMLCStr tagName, IXMLCStr attributeName, IXMLCStr attributeValue=NULL, int *i=NULL) const |
return child node with specific name/attribute (return an empty node if failing) More... | |
ITCXMLNode | getChildNodeByPath (IXMLCStr path, IXMLChar sep='/') const |
return the first child node with specific path More... | |
ITCXMLNode | getChildNodeByPathNonConst (IXMLStr path, IXMLChar sep='/') const |
return the first child node with specific path More... | |
IXMLCStr | getElementByPath (IXMLCStr xpath, IXMLChar sep='/') const |
return the text content of the given simplified XPATH More... | |
IXMLCStr | getElementByPathNonConst (IXMLStr xpath, IXMLChar sep='/') const |
return the text content of the given simplified XPATH More... | |
int | nChildNode (IXMLCStr name) const |
return the number of child node with specific name More... | |
int | nChildNode () const |
nbr of child node More... | |
IXMLAttribute | getAttribute (int i=0) const |
return ith attribute More... | |
IXMLCStr | getAttributeName (int i=0) const |
return ith attribute name More... | |
IXMLCStr | getAttributeValue (int i=0) const |
return ith attribute value More... | |
char | isAttributeSet (IXMLCStr name) const |
test if an attribute with a specific name is given More... | |
IXMLCStr | getAttribute (IXMLCStr name, int i) const |
return ith attribute content with specific name (return a NULL if failing) More... | |
IXMLCStr | getAttribute (IXMLCStr name, int *i=NULL) const |
return next attribute content with specific name (return a NULL if failing) More... | |
int | nAttribute () const |
nbr of attribute More... | |
IXMLClear | getClear (int i=0) const |
return ith clear field (comments) More... | |
int | nClear () const |
nbr of clear field More... | |
int | nElement () const |
nbr of different contents for current node More... | |
char | isEmpty () const |
is this node Empty? More... | |
char | isProcessInstruction () const |
is this node a Process instruction <? .... ?> More... | |
IXMLNode | deepCopy () const |
deep copy (duplicate/clone) a IXMLNode More... | |
ICXMLNode | deepCopyConstant () const |
deep copy (duplicate/clone) a IXMLNode More... | |
ITCXMLNode (const ITCXMLNode &A) | |
to allow shallow/fast copy: More... | |
ITCXMLNode & | operator= (const ITCXMLNode &A) |
to allow shallow/fast copy: More... | |
ITCXMLNode () | |
Static Public Member Functions | |
static ITCXMLNode | emptyNode () |
return IXMLNode::emptyIXMLNode; More... | |
static IXMLCStr | getErrorMessage (IXMLError error) |
this gives you a user-friendly explanation of the parsing error More... | |
Static Public Attributes | |
static ITCXMLNode | emptyITCXMLNode |
static IXMLClear | emptyIXMLClear |
static IXMLAttribute | emptyXMLAttribute |
Friends | |
class | IXMLDomParser |
class | IXMLNode |
class | ICXMLNode |
class | IXMLRenderer |
Main Class representing a Incredible Transient Constant XML node.
Most operations are performed using this class.
Definition at line 957 of file IXMLParser.h.
ITCXMLNode::ITCXMLNode | ( | const ITCXMLNode & | A | ) |
to allow shallow/fast copy:
|
inline |
Definition at line 1005 of file IXMLParser.h.
IXMLNode ITCXMLNode::deepCopy | ( | ) | const |
deep copy (duplicate/clone) a IXMLNode
Referenced by example10(), example5(), and example6().
|
static |
return IXMLNode::emptyIXMLNode;
IXMLAttribute ITCXMLNode::getAttribute | ( | int | i = 0 | ) | const |
return ith attribute
Referenced by example1(), and example2().
return ith attribute content with specific name (return a NULL if failing)
return next attribute content with specific name (return a NULL if failing)
IXMLCStr ITCXMLNode::getAttributeName | ( | int | i = 0 | ) | const |
return ith attribute name
Referenced by example7().
IXMLCStr ITCXMLNode::getAttributeValue | ( | int | i = 0 | ) | const |
return ith attribute value
Referenced by example1(), and example7().
ITCXMLNode ITCXMLNode::getChildNode | ( | int | i = 0 | ) | const |
return ith child node
Referenced by example1().
ITCXMLNode ITCXMLNode::getChildNode | ( | IXMLCStr | name, |
int | i | ||
) | const |
return ith child node with specific name (return an empty node if failing). If i==-1, this returns the last IXMLNode with the given name
ITCXMLNode ITCXMLNode::getChildNode | ( | IXMLCStr | name, |
int * | i = NULL |
||
) | const |
return next child node with specific name (return an empty node if failing)
ITCXMLNode ITCXMLNode::getChildNodeByPath | ( | IXMLCStr | path, |
IXMLChar | sep = '/' |
||
) | const |
return the first child node with specific path
Referenced by example1().
ITCXMLNode ITCXMLNode::getChildNodeByPathNonConst | ( | IXMLStr | path, |
IXMLChar | sep = '/' |
||
) | const |
return the first child node with specific path
ITCXMLNode ITCXMLNode::getChildNodeWithAttribute | ( | IXMLCStr | tagName, |
IXMLCStr | attributeName, | ||
IXMLCStr | attributeValue = NULL , |
||
int * | i = NULL |
||
) | const |
return child node with specific name/attribute (return an empty node if failing)
IXMLClear ITCXMLNode::getClear | ( | int | i = 0 | ) | const |
return ith clear field (comments)
Referenced by example1(), and example7().
return the text content of the given simplified XPATH
Referenced by example12().
return the text content of the given simplified XPATH
this gives you a user-friendly explanation of the parsing error
IXMLCStr ITCXMLNode::getName | ( | ) | const |
name of the node
Referenced by example10(), and example7().
ITCXMLNode ITCXMLNode::getParentNode | ( | ) | const |
return the parent node
IXMLCStr ITCXMLNode::getText | ( | int | i = 0 | ) | const |
return ith text field
Referenced by example1().
char ITCXMLNode::isAttributeSet | ( | IXMLCStr | name | ) | const |
test if an attribute with a specific name is given
char ITCXMLNode::isEmpty | ( | ) | const |
is this node Empty?
char ITCXMLNode::isProcessInstruction | ( | ) | const |
is this node a Process instruction <? .... ?>
int ITCXMLNode::nAttribute | ( | ) | const |
nbr of attribute
int ITCXMLNode::nChildNode | ( | IXMLCStr | name | ) | const |
return the number of child node with specific name
Referenced by example1().
int ITCXMLNode::nChildNode | ( | ) | const |
nbr of child node
int ITCXMLNode::nClear | ( | ) | const |
nbr of clear field
int ITCXMLNode::nElement | ( | ) | const |
nbr of different contents for current node
Referenced by example7().
int ITCXMLNode::nText | ( | ) | const |
nbr of text field
ITCXMLNode& ITCXMLNode::operator= | ( | const ITCXMLNode & | A | ) |
to allow shallow/fast copy:
|
friend |
Definition at line 961 of file IXMLParser.h.
|
friend |
Definition at line 959 of file IXMLParser.h.
|
friend |
Definition at line 960 of file IXMLParser.h.
|
friend |
Definition at line 962 of file IXMLParser.h.
|
static |
Definition at line 1005 of file IXMLParser.h.
|
static |
Definition at line 1007 of file IXMLParser.h.
|
static |
Definition at line 1008 of file IXMLParser.h.