#include <xmlParser.h>
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:
&, ", ', <, >
Definition at line 656 of file 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. | |
| XMLSTR | toXML (XMLCSTR source) |
| returns a pointer to an internal buffer that contains a XML-encoded string based on the "source" parameter. | |
Static Public Member Functions | |
| static XMLSTR | toXMLUnSafe (XMLSTR dest, XMLCSTR source) |
| deprecated: use "toXML" instead | |
| static int | lengthXMLString (XMLCSTR source) |
| deprecated: use "toXML" instead | |
| ToXMLStringTool::ToXMLStringTool | ( | ) | [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.
| XMLSTR ToXMLStringTool::toXML | ( | XMLCSTR | source | ) |
returns a pointer to an internal buffer that contains a XML-encoded string based on the "source" parameter.
| static XMLSTR ToXMLStringTool::toXMLUnSafe | ( | XMLSTR | dest, | |
| XMLCSTR | source | |||
| ) | [static] |
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".
| static int ToXMLStringTool::lengthXMLString | ( | XMLCSTR | source | ) | [static] |
deprecated: use "toXML" instead
1.5.6