GDBMS 1.0
Functions
Navigate the XMLNode structure
The XML parser

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.
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;

Function Documentation

XMLNode XMLNode::deepCopy ( ) const

deep copy (duplicate/clone) a XMLNode

Definition at line 2231 of file xmlParser.cpp.

XMLNode XMLNode::emptyNode ( ) [static]

return XMLNode::emptyXMLNode;

Definition at line 2653 of file xmlParser.cpp.

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();

Definition at line 2615 of file xmlParser.cpp.

XMLAttribute XMLNode::getAttribute ( int  i = 0) const

return ith attribute

Definition at line 2645 of file xmlParser.cpp.

XMLCSTR XMLNode::getAttribute ( XMLCSTR  name,
int *  i = NULL 
) const

return next attribute content with specific name (return a NULL if failing)

Definition at line 2573 of file xmlParser.cpp.

XMLCSTR XMLNode::getAttribute ( XMLCSTR  name,
int  i 
) const

return ith attribute content with specific name (return a NULL if failing)

Definition at line 2607 of file xmlParser.cpp.

XMLCSTR XMLNode::getAttributeName ( int  i = 0) const

return ith attribute name

Definition at line 2646 of file xmlParser.cpp.

XMLCSTR XMLNode::getAttributeValue ( int  i = 0) const

return ith attribute value

Definition at line 2647 of file xmlParser.cpp.

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.

Definition at line 2473 of file xmlParser.cpp.

XMLNode XMLNode::getChildNode ( XMLCSTR  name,
int *  i = NULL 
) const

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

Definition at line 2455 of file xmlParser.cpp.

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

return ith child node

Definition at line 2649 of file xmlParser.cpp.

XMLNode XMLNode::getChildNodeByPath ( XMLCSTR  path,
char  createNodeIfMissing = 0,
XMLCHAR  sep = '/' 
)

return the first child node with specific path

Definition at line 2488 of file xmlParser.cpp.

XMLNode XMLNode::getChildNodeByPathNonConst ( XMLSTR  path,
char  createNodeIfMissing = 0,
XMLCHAR  sep = '/' 
)

return the first child node with specific path.

Definition at line 2496 of file xmlParser.cpp.

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)

Definition at line 2544 of file xmlParser.cpp.

XMLClear XMLNode::getClear ( int  i = 0) const

return ith clear field (comments)

Definition at line 2644 of file xmlParser.cpp.

XMLCSTR XMLNode::getName ( ) const

name of the node

Definition at line 2638 of file xmlParser.cpp.

XMLNode XMLNode::getParentNode ( ) const

return the parent node

Definition at line 2650 of file xmlParser.cpp.

XMLCSTR XMLNode::getText ( int  i = 0) const

return ith text field

Definition at line 2648 of file xmlParser.cpp.

char XMLNode::isAttributeSet ( XMLCSTR  name) const

test if an attribute with a specific name is given

Definition at line 2591 of file xmlParser.cpp.

char XMLNode::isDeclaration ( ) const

is this node a declaration <? .... ?>

Definition at line 2651 of file xmlParser.cpp.

char XMLNode::isEmpty ( ) const

is this node Empty?

Definition at line 2652 of file xmlParser.cpp.

int XMLNode::nAttribute ( ) const

nbr of attribute

Definition at line 2641 of file xmlParser.cpp.

int XMLNode::nChildNode ( XMLCSTR  name) const

return the number of child node with specific name

Definition at line 2442 of file xmlParser.cpp.

int XMLNode::nChildNode ( ) const

nbr of child node

Definition at line 2640 of file xmlParser.cpp.

int XMLNode::nClear ( ) const

nbr of clear field

Definition at line 2642 of file xmlParser.cpp.

int XMLNode::nElement ( ) const

nbr of different contents for current node

Definition at line 2643 of file xmlParser.cpp.

int XMLNode::nText ( ) const

nbr of text field

Definition at line 2639 of file xmlParser.cpp.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines