IncredibleXMLParser  3.05
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
ICXMLNode Class Reference

Main Class representing a Incredible Non-Transient and Constant XML node. More...

#include <IXMLParser.h>

Inheritance diagram for ICXMLNode:
ITCXMLNode

Public Member Functions

ICXMLNode getParentNode () const
 return the parent node More...
 
ICXMLNode getChildNode (int i=0) const
 return ith child node More...
 
ICXMLNode 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...
 
ICXMLNode getChildNode (IXMLCStr name, int *i=NULL) const
 return next child node with specific name (return an empty node if failing) More...
 
ICXMLNode 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...
 
ICXMLNode getChildNodeByPath (IXMLCStr path, IXMLChar sep='/') const
 return the first child node with specific path More...
 
ICXMLNode getChildNodeByPathNonConst (IXMLStr path, IXMLChar sep='/') const
 
 ~ICXMLNode ()
 
 ICXMLNode (const ICXMLNode &A)
 to allow shallow/fast copy: More...
 
ICXMLNodeoperator= (const ICXMLNode &A)
 to allow shallow/fast copy: More...
 
 ICXMLNode ()
 
- Public Member Functions inherited from ITCXMLNode
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...
 
ITCXMLNodeoperator= (const ITCXMLNode &A)
 to allow shallow/fast copy: More...
 
 ITCXMLNode ()
 

Static Public Member Functions

static ICXMLNode emptyNode ()
 return an empty Node; More...
 
- Static Public Member Functions inherited from ITCXMLNode
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 ICXMLNode emptyICXMLNode
 
- Static Public Attributes inherited from ITCXMLNode
static ITCXMLNode emptyITCXMLNode
 
static IXMLClear emptyIXMLClear
 
static IXMLAttribute emptyXMLAttribute
 

Friends

class IXMLRenderer
 

Detailed Description

Main Class representing a Incredible Non-Transient and Constant XML node.

Use the ICXMLNode class when you want to keep a XMLNode structure in memory after a new call to one of the parse method of the IXMLDomParser. The constructors of the ITCXMLNode class are protected, so use instead one of these four methods to get your first instance of ICXMLNode:

Definition at line 1067 of file IXMLParser.h.

Constructor & Destructor Documentation

ICXMLNode::~ICXMLNode ( )
ICXMLNode::ICXMLNode ( const ICXMLNode A)

to allow shallow/fast copy:

ICXMLNode::ICXMLNode ( )
inline

Definition at line 1086 of file IXMLParser.h.

Member Function Documentation

static ICXMLNode ICXMLNode::emptyNode ( )
static

return an empty Node;

ICXMLNode ICXMLNode::getChildNode ( int  i = 0) const

return ith child node

ICXMLNode ICXMLNode::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

ICXMLNode ICXMLNode::getChildNode ( IXMLCStr  name,
int *  i = NULL 
) const

return next child node with specific name (return an empty node if failing)

ICXMLNode ICXMLNode::getChildNodeByPath ( IXMLCStr  path,
IXMLChar  sep = '/' 
) const

return the first child node with specific path

ICXMLNode ICXMLNode::getChildNodeByPathNonConst ( IXMLStr  path,
IXMLChar  sep = '/' 
) const
ICXMLNode ICXMLNode::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)

ICXMLNode ICXMLNode::getParentNode ( ) const

return the parent node

ICXMLNode& ICXMLNode::operator= ( const ICXMLNode A)

to allow shallow/fast copy:

Friends And Related Function Documentation

friend class IXMLRenderer
friend

Definition at line 1069 of file IXMLParser.h.

Member Data Documentation

ICXMLNode ICXMLNode::emptyICXMLNode
static

Definition at line 1086 of file IXMLParser.h.


The documentation for this class was generated from the following file: