23 #ifndef __ccxx_XMLDocument_hxx 24 #define __ccxx_XMLDocument_hxx 113 void read(std::istream& stream);
121 void read(
const String& str);
131 void write(std::ostream& stream,
uint_t tabWidth = 2)
const;
148 {
return(_root == NULL); }
156 {
return(isEmpty()); }
172 void parse(
const char* data,
size_t length,
bool done =
true);
174 inline void appendCharData(
const XML_Char* data,
int len)
175 { _charData.append(data, len); }
188 static void _elementStartHandler(
void* userData,
const XML_Char* name,
189 const XML_Char** attr);
190 static void _elementEndHandler(
void* userData,
const XML_Char* name);
191 static void _charDataHandler(
void* userData,
const XML_Char* data,
int len);
192 static void _commentHandler(
void* userData,
const XML_Char* data);
199 #endif // __ccxx_XMLDocument_hxx
#define COMMONCPPXML_API
Definition: Common.h++:129
An object representing an XML document.
Definition: XMLDocument.h++:46
unsigned int uint_t
An alias for unsigned int.
Definition: Integers.h++:74
An object representing an XML element.
Definition: XMLElement.h++:51
bool operator!() const
Test if the document is empty.
Definition: XMLDocument.h++:155
A flexible, reference counted, copy-on-write, thread-safe, nullable string.
Definition: String.h++:50
#define CCXX_COPY_DECLS(CLASS)
Inlines declarations of a copy constructor and assignment operator for the class CLASS.
Definition: Common.h++:295
bool isEmpty() const
Test if the document is empty.
Definition: XMLDocument.h++:147
Definition: AllocationMap.c++:25