IncredibleXMLParser  3.05
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions

Functions

static IXMLNode IXMLNode::createXMLTopNode_WOSD (IXMLStr pName, char isDeclaration=FALSE)
 Create the top node of an IXMLNode structure. More...
 
IXMLNode IXMLNode::addChild_WOSD (IXMLStr pName, char isDeclaration=FALSE, IXMLElementPosition pos=-1)
 Add a new child node. More...
 
IXMLAttributeIXMLNode::addAttribute_WOSD (IXMLStr pName, IXMLStr pValue)
 Add a new attribute. More...
 
IXMLCStr IXMLNode::addText_WOSD (IXMLStr pValue, IXMLElementPosition pos=-1)
 Add a new text content. More...
 
IXMLClearIXMLNode::addClear_WOSD (IXMLStr pValue, IXMLCStr lpcOpen=NULL, IXMLCStr lpcClose=NULL, IXMLElementPosition pos=-1)
 Add a new clear Tag. More...
 
IXMLCStr IXMLNode::updateName_WOSD (IXMLStr pName)
 change node's name More...
 
IXMLAttributeIXMLNode::updateAttribute_WOSD (IXMLAttribute *newAttribute, IXMLAttribute *oldAttribute)
 if the attribute to update is missing, a new one will be added More...
 
IXMLAttributeIXMLNode::updateAttribute_WOSD (IXMLStr lpcNewValue, IXMLStr lpcNewName=NULL, int i=0)
 if the attribute to update is missing, a new one will be added More...
 
IXMLAttributeIXMLNode::updateAttribute_WOSD (IXMLStr lpcNewValue, IXMLStr lpcNewName, IXMLCStr lpcOldName)
 set lpcNewName=NULL if you don't want to change the name of the attribute if the attribute to update is missing, a new one will be added More...
 
IXMLCStr IXMLNode::updateText_WOSD (IXMLStr lpcNewValue, int i=0)
 if the text to update is missing, a new one will be added More...
 
IXMLCStr IXMLNode::updateText_WOSD (IXMLStr lpcNewValue, IXMLCStr lpcOldValue)
 if the text to update is missing, a new one will be added More...
 
IXMLClearIXMLNode::updateClear_WOSD (IXMLStr lpcNewContent, int i=0)
 if the clearTag to update is missing, a new one will be added More...
 
IXMLClearIXMLNode::updateClear_WOSD (IXMLClear *newP, IXMLClear *oldP)
 if the clearTag to update is missing, a new one will be added More...
 
IXMLClearIXMLNode::updateClear_WOSD (IXMLStr lpcNewValue, IXMLCStr lpcOldValue)
 if the clearTag to update is missing, a new one will be added More...
 

Detailed Description

The strings given as parameters for the "add" and "update" methods that have a name with the postfix "_WOSD" (that means "WithOut String Duplication")(for example "addText_WOSD") will be free'd by the IXMLNode class. For example, it means that this is incorrect:

xNode.addText_WOSD("foo");
xNode.updateAttribute_WOSD("#newcolor" ,NULL,"color");

In opposition, this is correct:

xNode.addText("foo");
xNode.addText_WOSD(stringDup("foo"));
xNode.updateAttribute("#newcolor" ,NULL,"color");
xNode.updateAttribute_WOSD(stringDup("#newcolor"),NULL,"color");

Typically, you will never do:

char *b=(char*)malloc(...);
xNode.addText(b);
free(b);

... but rather:

char *b=(char*)malloc(...);
xNode.addText_WOSD(b);

('free(b)' is performed by the IXMLNode class)

Function Documentation

IXMLAttribute* IXMLNode::addAttribute_WOSD ( IXMLStr  pName,
IXMLStr  pValue 
)

Add a new attribute.

IXMLNode IXMLNode::addChild_WOSD ( IXMLStr  pName,
char  isDeclaration = FALSE,
IXMLElementPosition  pos = -1 
)

Add a new child node.

IXMLClear* IXMLNode::addClear_WOSD ( IXMLStr  pValue,
IXMLCStr  lpcOpen = NULL,
IXMLCStr  lpcClose = NULL,
IXMLElementPosition  pos = -1 
)

Add a new clear Tag.

IXMLCStr IXMLNode::addText_WOSD ( IXMLStr  pValue,
IXMLElementPosition  pos = -1 
)

Add a new text content.

static IXMLNode IXMLNode::createXMLTopNode_WOSD ( IXMLStr  pName,
char  isDeclaration = FALSE 
)
static

Create the top node of an IXMLNode structure.

IXMLAttribute* IXMLNode::updateAttribute_WOSD ( IXMLAttribute newAttribute,
IXMLAttribute oldAttribute 
)

if the attribute to update is missing, a new one will be added

IXMLAttribute* IXMLNode::updateAttribute_WOSD ( IXMLStr  lpcNewValue,
IXMLStr  lpcNewName = NULL,
int  i = 0 
)

if the attribute to update is missing, a new one will be added

IXMLAttribute* IXMLNode::updateAttribute_WOSD ( IXMLStr  lpcNewValue,
IXMLStr  lpcNewName,
IXMLCStr  lpcOldName 
)

set lpcNewName=NULL if you don't want to change the name of the attribute if the attribute to update is missing, a new one will be added

IXMLClear* IXMLNode::updateClear_WOSD ( IXMLStr  lpcNewContent,
int  i = 0 
)

if the clearTag to update is missing, a new one will be added

IXMLClear* IXMLNode::updateClear_WOSD ( IXMLClear newP,
IXMLClear oldP 
)

if the clearTag to update is missing, a new one will be added

IXMLClear* IXMLNode::updateClear_WOSD ( IXMLStr  lpcNewValue,
IXMLCStr  lpcOldValue 
)

if the clearTag to update is missing, a new one will be added

IXMLCStr IXMLNode::updateName_WOSD ( IXMLStr  pName)

change node's name

IXMLCStr IXMLNode::updateText_WOSD ( IXMLStr  lpcNewValue,
int  i = 0 
)

if the text to update is missing, a new one will be added

IXMLCStr IXMLNode::updateText_WOSD ( IXMLStr  lpcNewValue,
IXMLCStr  lpcOldValue 
)

if the text to update is missing, a new one will be added