String Allocation/Free functions
[Create or Update the XMLNode structure]


Functions

XMLDLLENTRY XMLSTR stringDup (XMLCSTR source, int cbData=-1)
 Duplicate (copy in a new allocated buffer) the source string.
XMLDLLENTRY void freeXMLString (XMLSTR t)
 to free the string allocated inside the "stringDup" function or the "createXMLString" function.


Function Documentation

XMLDLLENTRY void freeXMLString ( XMLSTR  t  ) 

to free the string allocated inside the "stringDup" function or the "createXMLString" function.

XMLDLLENTRY XMLSTR stringDup ( XMLCSTR  source,
int  cbData = -1 
)

Duplicate (copy in a new allocated buffer) the source string.

This is a very handy function when used with all the "XMLNode::*_WOSD" functions (xmlWOSD).

Parameters:
cbData If !=0 then cbData is the number of chars to duplicate. New strings allocated with this function should be free'd using the "freeXMLString" function.


Generated on Tue Aug 19 12:00:16 2008 for xmlParser by  doxygen 1.5.6