Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cXml Struct Reference

#include <cXml.h>

Inheritance diagram for GrayLib::cXml:
GrayLib::cXmlContainer GrayLib::cXmlHandle GrayLib::cXmlNode GrayLib::cXmlReadVisitor GrayLib::cXmlReader GrayLib::cXmlDocument GrayLib::cXmlElement GrayLib::cXmlComment GrayLib::cXmlDeclaration GrayLib::cXmlDocument GrayLib::cXmlElement GrayLib::cXmlText GrayLib::cXmlUnknown

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...
 

Detailed Description

XML helper static functions.

Member Enumeration Documentation

◆ XMLNODE_TYPE

The types of XML nodes supported by cXml. (All the unsupported types are picked up by UNKNOWN.)

Enumerator
XMLNODE_QTY 

Member Function Documentation

◆ AddPathElement()

static void GrayLib::cXml::AddPathElement ( cXmlString sPath,
const cXmlString sElement 
)
inlinestatic

Build a path string from calls to onElementStart

◆ GetAttributeStr()

cXmlString GRAYCALL GrayLib::cXml::GetAttributeStr ( const IniChar_t pszName,
const cXmlString sValue 
)
static

Format string for printing. The reverse of cXmlReader::ParseAttrib()

◆ IsXML()

bool GRAYCALL GrayLib::cXml::IsXML ( const IniChar_t pszStr,
StrLen_t  iLenMax = StrT::k_LEN_MAX 
)
static

Does this text look like XML ?

◆ ParseMicrosoftBOM()

StrLen_t GRAYCALL GrayLib::cXml::ParseMicrosoftBOM ( const BYTE *  pszData)
static

Check for the Microsoft UTF-8 lead bytes.

◆ RemovePathElement()

static void GrayLib::cXml::RemovePathElement ( cXmlString sPath,
const cXmlString sElement 
)
inlinestatic

Build a path string from calls to onElementEnd

Member Data Documentation

◆ k_cdataEnd

const char GrayLib::cXml::k_cdataEnd = "]]>"
static

"]]>"

◆ k_cdataHeader

const char GrayLib::cXml::k_cdataHeader = "<![CDATA["
static

"<![CDATA["

◆ k_commentEnd

const char GrayLib::cXml::k_commentEnd = "-->"
static

"-->"

◆ k_commentHeader

const char GrayLib::cXml::k_commentHeader = "<!--"
static

"<!--" // comments are not reentrant!

◆ k_dtdHeader

const char GrayLib::cXml::k_dtdHeader = "<!"
static

"<!"

◆ k_xmlEnd

const char GrayLib::cXml::k_xmlEnd = "?>"
static

"?>"

◆ k_xmlHeader

const char GrayLib::cXml::k_xmlHeader = "<?xml"
static

"<?xml" // not case sensitive !


The documentation for this struct was generated from the following files: