xmlParser
2.44
|
Helper class to create XML files using "printf", "fprintf", "cout",... functions. More...
#include <xmlParser.h>
Public Member Functions | |
ToXMLStringTool () | |
~ToXMLStringTool () | |
void | freeBuffer () |
call this function when you have finished using this object to release memory used by the internal buffer. More... | |
XMLSTR | toXML (XMLCSTR source) |
returns a pointer to an internal buffer that contains a XML-encoded string based on the "source" parameter. More... | |
Static Public Member Functions | |
static XMLSTR | toXMLUnSafe (XMLSTR dest, XMLCSTR source) |
deprecated: use "toXML" instead More... | |
static int | lengthXMLString (XMLCSTR source) |
deprecated: use "toXML" instead More... | |
Helper class to create XML files using "printf", "fprintf", "cout",... functions.
The ToXMLStringTool class helps you creating XML files using "printf", "fprintf", "cout",... functions. The "ToXMLStringTool" class is processing strings so that all the characters &,",',<,> are replaced by their XML equivalent:
&, ", ', <, >
Using the "ToXMLStringTool class" and the "fprintf function" is THE most efficient way to produce VERY large XML documents VERY fast.
Definition at line 656 of file xmlParser.h.
|
inline |
Definition at line 659 of file xmlParser.h.
ToXMLStringTool::~ToXMLStringTool | ( | ) |
void ToXMLStringTool::freeBuffer | ( | ) |
call this function when you have finished using this object to release memory used by the internal buffer.
|
static |
deprecated: use "toXML" instead
returns a pointer to an internal buffer that contains a XML-encoded string based on the "source" parameter.
deprecated: use "toXML" instead
The "toXMLUnSafe" function is deprecated because there is a possibility of "destination-buffer-overflow". It converts the string "source" to the string "dest".