LLC2_API
Functions
Position helper functions (use in conjunction with the update&add functions
Create or Update the XMLNode structure

These are some useful functions when you want to insert a childNode, a text or a XMLClearTag in the middle (at a specified position) of a XMLNode tree already constructed. More...

Functions

XMLElementPosition XMLNode::positionOfText (int i=0) const
XMLElementPosition XMLNode::positionOfText (XMLCSTR lpszValue) const
XMLElementPosition XMLNode::positionOfClear (int i=0) const
XMLElementPosition XMLNode::positionOfClear (XMLCSTR lpszValue) const
XMLElementPosition XMLNode::positionOfClear (XMLClear *a) const
XMLElementPosition XMLNode::positionOfChildNode (int i=0) const
XMLElementPosition XMLNode::positionOfChildNode (XMLNode x) const
XMLElementPosition XMLNode::positionOfChildNode (XMLCSTR name, int i=0) const
 return the position of the ith childNode with the specified name if (name==NULL) return the position of the ith childNode

Detailed Description

These are some useful functions when you want to insert a childNode, a text or a XMLClearTag in the middle (at a specified position) of a XMLNode tree already constructed.

The value returned by these methods is to be used as last parameter (parameter 'pos') of addChild, addText or addClear.


Function Documentation

XMLElementPosition XMLNode::positionOfChildNode ( int  i = 0) const

Definition at line 2527 of file xmlParser.cpp.

References eNodeChild.

Referenced by XMLNode::positionOfChildNode().

XMLElementPosition XMLNode::positionOfChildNode ( XMLCSTR  name,
int  i = 0 
) const

return the position of the ith childNode with the specified name if (name==NULL) return the position of the ith childNode

Definition at line 2540 of file xmlParser.cpp.

References eNodeChild, XMLNode::getChildNode(), and XMLNode::positionOfChildNode().

XMLElementPosition XMLNode::positionOfChildNode ( XMLNode  x) const

Definition at line 2531 of file xmlParser.cpp.

References eNodeChild.

XMLElementPosition XMLNode::positionOfClear ( XMLCSTR  lpszValue) const

Definition at line 2529 of file xmlParser.cpp.

References XMLNode::positionOfClear().

XMLElementPosition XMLNode::positionOfClear ( XMLClear a) const

Definition at line 2530 of file xmlParser.cpp.

References XMLClear::lpszValue, and XMLNode::positionOfClear().

XMLElementPosition XMLNode::positionOfClear ( int  i = 0) const

Definition at line 2526 of file xmlParser.cpp.

References eNodeClear.

Referenced by XMLNode::positionOfClear().

XMLElementPosition XMLNode::positionOfText ( XMLCSTR  lpszValue) const

Definition at line 2528 of file xmlParser.cpp.

References XMLNode::positionOfText().

XMLElementPosition XMLNode::positionOfText ( int  i = 0) const

Definition at line 2525 of file xmlParser.cpp.

References eNodeText.

Referenced by XMLNode::positionOfText().