IncredibleXMLParser  3.05
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
Create an XML string starting from the current IXMLNode.

Functions

IXMLCStr IXMLRenderer::getString (ITCXMLNode x, int nFormat=1, int *pnSize=NULL)
 Create an XML string starting from the current ITCXMLNode. More...
 
IXMLCStr IXMLRenderer::getString (ICXMLNode x, int nFormat=1, int *pnSize=NULL)
 Create an XML string starting from the current ICXMLNode. More...
 
IXMLCStr IXMLRenderer::getString (IXMLNode x, int nFormat=1, int *pnSize=NULL)
 Create an XML string starting from the current IXMLNode. More...
 
int IXMLRenderer::szString ()
 the size of the last XML string computed. More...
 
void IXMLRenderer::clear ()
 Call this function when you have finished using this object to release memory used by the internal buffer. More...
 

Detailed Description

If the nFormat parameter is zero, no formatting is required otherwise this returns a pointer to an internal buffer that contains an user friendly XML string with appropriate white spaces and carriage returns that represents textually the content of the IXMLNode x. If pnSize is given it returns the size in character of the string. The same memory buffer is re-used at each call of the "getString" or "writeToFile" function. This allows very fast rendering because there will be no new memory allocations performed when calling several times the "getString" function.

See the functions example3() and example4() for some usage examples.

Function Documentation

void IXMLRenderer::clear ( )

Call this function when you have finished using this object to release memory used by the internal buffer.

IXMLCStr IXMLRenderer::getString ( ITCXMLNode  x,
int  nFormat = 1,
int *  pnSize = NULL 
)

Create an XML string starting from the current ITCXMLNode.

Referenced by example3(), example4(), and example6().

IXMLCStr IXMLRenderer::getString ( ICXMLNode  x,
int  nFormat = 1,
int *  pnSize = NULL 
)

Create an XML string starting from the current ICXMLNode.

IXMLCStr IXMLRenderer::getString ( IXMLNode  x,
int  nFormat = 1,
int *  pnSize = NULL 
)

Create an XML string starting from the current IXMLNode.

int IXMLRenderer::szString ( )

the size of the last XML string computed.