xmlParser  2.44
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
Deleting Nodes or Attributes

Functions

void XMLNode::deleteNodeContent ()
 The "deleteNodeContent" function forces the deletion of the content of this XMLNode and the subtree. More...
 
void XMLNode::deleteAttribute (int i=0)
 Delete the ith attribute of the current XMLNode. More...
 
void XMLNode::deleteAttribute (XMLCSTR lpszName)
 Delete the attribute with the given name (the "strcmp" function is used to find the right attribute) More...
 
void XMLNode::deleteAttribute (XMLAttribute *anAttribute)
 Delete the attribute with the name "anAttribute->lpszName" (the "strcmp" function is used to find the right attribute) More...
 
void XMLNode::deleteText (int i=0)
 Delete the Ith text content of the current XMLNode. More...
 
void XMLNode::deleteText (XMLCSTR lpszValue)
 Delete the text content "lpszValue" inside the current XMLNode (direct "pointer-to-pointer" comparison is used to find the right text) More...
 
void XMLNode::deleteClear (int i=0)
 Delete the Ith clear tag inside the current XMLNode. More...
 
void XMLNode::deleteClear (XMLCSTR lpszValue)
 Delete the clear tag "lpszValue" inside the current XMLNode (direct "pointer-to-pointer" comparison is used to find the clear tag) More...
 
void XMLNode::deleteClear (XMLClear *p)
 Delete the clear tag "p" inside the current XMLNode (direct "pointer-to-pointer" comparison on the lpszName of the clear tag is used to find the clear tag) More...
 

Detailed Description

Some deletion functions:

Function Documentation

void XMLNode::deleteAttribute ( int  i = 0)

Delete the ith attribute of the current XMLNode.

void XMLNode::deleteAttribute ( XMLCSTR  lpszName)

Delete the attribute with the given name (the "strcmp" function is used to find the right attribute)

void XMLNode::deleteAttribute ( XMLAttribute anAttribute)

Delete the attribute with the name "anAttribute->lpszName" (the "strcmp" function is used to find the right attribute)

void XMLNode::deleteClear ( int  i = 0)

Delete the Ith clear tag inside the current XMLNode.

void XMLNode::deleteClear ( XMLCSTR  lpszValue)

Delete the clear tag "lpszValue" inside the current XMLNode (direct "pointer-to-pointer" comparison is used to find the clear tag)

void XMLNode::deleteClear ( XMLClear p)

Delete the clear tag "p" inside the current XMLNode (direct "pointer-to-pointer" comparison on the lpszName of the clear tag is used to find the clear tag)

void XMLNode::deleteNodeContent ( )

The "deleteNodeContent" function forces the deletion of the content of this XMLNode and the subtree.

Note
The XMLNode instances that are referring to the part of the subtree that has been deleted CANNOT be used anymore!!. Unexpected results will occur if you continue using them.
void XMLNode::deleteText ( int  i = 0)

Delete the Ith text content of the current XMLNode.

void XMLNode::deleteText ( XMLCSTR  lpszValue)

Delete the text content "lpszValue" inside the current XMLNode (direct "pointer-to-pointer" comparison is used to find the right text)