![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cXml.h>
Public Types | |
enum | XMLNODE_TYPE { XMLNODE_QTY } |
Static Public Member Functions | |
static StrLen_t GRAYCALL | ParseMicrosoftBOM (const BYTE *pszData) |
static bool GRAYCALL | IsXML (const IniChar_t *pszStr, StrLen_t iLenMax=StrT::k_LEN_MAX) |
static cXmlString GRAYCALL | GetAttributeStr (const IniChar_t *pszName, const cXmlString &sValue) |
static void | AddPathElement (cXmlString &sPath, const cXmlString &sElement) |
static void | RemovePathElement (cXmlString &sPath, const cXmlString &sElement) |
Static Public Attributes | |
static const char | k_xmlHeader [6] = "<?xml" |
"<?xml" // not case sensitive ! More... | |
static const char | k_xmlEnd [3] = "?>" |
"?>" More... | |
static const char | k_commentHeader [5] = "<!--" |
"<!--" // comments are not reentrant! More... | |
static const char | k_commentEnd [4] = "-->" |
"-->" More... | |
static const char | k_cdataHeader [10] = "<![CDATA[" |
"<![CDATA[" More... | |
static const char | k_cdataEnd [4] = "]]>" |
"]]>" More... | |
static const char | k_dtdHeader [3] = "<!" |
"<!" More... | |
XML helper static functions.
The types of XML nodes supported by cXml. (All the unsupported types are picked up by UNKNOWN.)
Enumerator | |
---|---|
XMLNODE_QTY |
|
inlinestatic |
Build a path string from calls to onElementStart
|
static |
Format string for printing. The reverse of cXmlReader::ParseAttrib()
|
static |
Does this text look like XML ?
Check for the Microsoft UTF-8 lead bytes.
|
inlinestatic |
Build a path string from calls to onElementEnd
|
static |
"]]>"
|
static |
"<![CDATA["
|
static |
"-->"
|
static |
"<!--" // comments are not reentrant!
|
static |
"<!"
|
static |
"?>"
|
static |
"<?xml" // not case sensitive !