IncredibleXMLParser
3.05
|
Helper class to create XML files using "printf", "fprintf", "cout",... functions. More...
#include <IXMLParser.h>
Public Types | |
enum | IXMLStringLocation { IXMLStringLocation_unknown =0, IXMLStringLocation_inAttribute =1, IXMLStringLocation_inText =2 } |
Enumeration for XML String location. More... | |
typedef enum ToIXMLStringTool::IXMLStringLocation | IXMLStringLocation |
Enumeration for XML String location. More... | |
Public Member Functions | |
ToIXMLStringTool (IXMLStringLocation loc=IXMLStringLocation_unknown) | |
~ToIXMLStringTool () | |
void | clear () |
call this function when you have finished using this object to release memory used by the internal buffer. More... | |
void | setLocation (IXMLStringLocation loc=IXMLStringLocation_unknown) |
IXMLStringLocation | getLocation () |
IXMLStr | toXML (IXMLCStr source) |
returns a pointer to an internal buffer that contains a XML-encoded string based on the "source" parameter. More... | |
IXMLStr | toXMLUnSafe (IXMLStr dest, IXMLCStr source) |
deprecated: use "toXML" instead More... | |
int | lengthXMLString (IXMLCStr source) |
deprecated: use "toXML" instead More... | |
char | setCharEncoding (IXMLPullParser::IXMLCharEncoding encoding=IXMLPullParser::char_encoding_UTF8) |
IXMLPullParser::IXMLCharEncoding | getCharEncoding () |
Helper class to create XML files using "printf", "fprintf", "cout",... functions.
The ToIXMLStringTool class helps you creating XML files using "printf", "fprintf", "cout",... functions. The "ToIXMLStringTool" class is processing strings so that all the characters &,",',<,> are replaced by their XML equivalent:
&, ", ', <, >
Using the "ToIXMLStringTool class" and the "fprintf function" is THE most efficient way to produce VERY large XML documents VERY fast.
Definition at line 1287 of file IXMLParser.h.
Enumeration for XML String location.
Enumeration for XML String location.
Enumerator | |
---|---|
IXMLStringLocation_unknown | |
IXMLStringLocation_inAttribute | |
IXMLStringLocation_inText |
Definition at line 1291 of file IXMLParser.h.
ToIXMLStringTool::ToIXMLStringTool | ( | IXMLStringLocation | loc = IXMLStringLocation_unknown | ) |
ToIXMLStringTool::~ToIXMLStringTool | ( | ) |
void ToIXMLStringTool::clear | ( | ) |
call this function when you have finished using this object to release memory used by the internal buffer.
IXMLPullParser::IXMLCharEncoding ToIXMLStringTool::getCharEncoding | ( | ) |
IXMLStringLocation ToIXMLStringTool::getLocation | ( | ) |
int ToIXMLStringTool::lengthXMLString | ( | IXMLCStr | source | ) |
deprecated: use "toXML" instead
char ToIXMLStringTool::setCharEncoding | ( | IXMLPullParser::IXMLCharEncoding | encoding = IXMLPullParser::char_encoding_UTF8 | ) |
void ToIXMLStringTool::setLocation | ( | IXMLStringLocation | loc = IXMLStringLocation_unknown | ) |
returns a pointer to an internal buffer that contains a XML-encoded string based on the "source" parameter.
Referenced by example11().
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".