27 #if defined(ANDROID_NDK) || defined(__BORLANDC__) || defined(__QNXNTO__) 35 #if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE) 47 va_start( va, format );
48 int result = vsnprintf_s( buffer, size, _TRUNCATE, format, va );
55 int result = vsnprintf_s( buffer, size, _TRUNCATE, format, va );
59 #define TIXML_VSCPRINTF _vscprintf 60 #define TIXML_SSCANF sscanf_s 61 #elif defined _MSC_VER 63 #define TIXML_SNPRINTF _snprintf 64 #define TIXML_VSNPRINTF _vsnprintf 65 #define TIXML_SSCANF sscanf 66 #if (_MSC_VER < 1400 ) && (!defined WINCE) 68 #define TIXML_VSCPRINTF _vscprintf // VS2003's C runtime has this, but VC6 C runtime or WinCE SDK doesn't have. 76 char*
str =
new char[len]();
77 const int required = _vsnprintf(str, len, format, va);
79 if ( required != -1 ) {
92 #define TIXML_SNPRINTF snprintf 93 #define TIXML_VSNPRINTF vsnprintf 96 int len = vsnprintf( 0, 0, format, va );
100 #define TIXML_SSCANF sscanf 130 {
"quot", 4, DOUBLE_QUOTE },
132 {
"apos", 4, SINGLE_QUOTE },
146 if (
this == other ) {
171 if ( _flags & NEEDS_DELETE ) {
184 size_t len = strlen( str );
186 _start =
new char[ len+1 ];
187 memcpy( _start, str, len+1 );
189 _flags = flags | NEEDS_DELETE;
200 char endChar = *endTag;
201 size_t length = strlen( endTag );
205 if ( *p == endChar && strncmp( p, endTag, length ) == 0 ) {
206 Set( start, p, strFlags );
208 }
else if (*p ==
'\n') {
227 char*
const start = p;
246 const char* p = _start;
271 if ( _flags & NEEDS_FLUSH ) {
273 _flags ^= NEEDS_FLUSH;
276 const char* p = _start;
280 if ( (_flags & NEEDS_NEWLINE_NORMALIZATION) && *p == CR ) {
284 if ( *(p+1) == LF ) {
293 else if ( (_flags & NEEDS_NEWLINE_NORMALIZATION) && *p == LF ) {
294 if ( *(p+1) == CR ) {
303 else if ( (_flags & NEEDS_ENTITY_PROCESSING) && *p ==
'&' ) {
309 if ( *(p+1) ==
'#' ) {
310 const int buflen = 10;
311 char buf[buflen] = { 0 };
314 if ( adjusted == 0 ) {
323 memcpy( q, buf, len );
328 bool entityFound =
false;
330 const Entity& entity = entities[i];
332 && *( p + entity.
length + 1 ) ==
';' ) {
341 if ( !entityFound ) {
358 if ( _flags & NEEDS_WHITESPACE_COLLAPSING ) {
359 CollapseWhitespace();
361 _flags = (_flags & NEEDS_DELETE);
377 static const char* defTrue =
"true";
378 static const char* defFalse =
"false";
380 writeBoolTrue = (writeTrue) ? writeTrue : defTrue;
381 writeBoolFalse = (writeFalse) ? writeFalse : defFalse;
390 const unsigned char* pu =
reinterpret_cast<const unsigned char*
>(p);
392 if ( *(pu+0) == TIXML_UTF_LEAD_0
393 && *(pu+1) == TIXML_UTF_LEAD_1
405 const unsigned long BYTE_MASK = 0xBF;
406 const unsigned long BYTE_MARK = 0x80;
407 const unsigned long FIRST_BYTE_MARK[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
412 else if ( input < 0x800 ) {
415 else if ( input < 0x10000 ) {
418 else if ( input < 0x200000 ) {
433 *output = (char)((input | BYTE_MARK) & BYTE_MASK);
438 *output = (char)((input | BYTE_MARK) & BYTE_MASK);
443 *output = (char)((input | BYTE_MARK) & BYTE_MASK);
448 *output = (char)(input | FIRST_BYTE_MARK[*length]);
461 if ( *(p+1) ==
'#' && *(p+2) ) {
462 unsigned long ucs = 0;
466 static const char SEMICOLON =
';';
468 if ( *(p+2) ==
'x' ) {
475 q = strchr( q, SEMICOLON );
485 while ( *q !=
'x' ) {
486 unsigned int digit = 0;
488 if ( *q >=
'0' && *q <=
'9' ) {
491 else if ( *q >=
'a' && *q <=
'f' ) {
492 digit = *q -
'a' + 10;
494 else if ( *q >=
'A' && *q <=
'F' ) {
495 digit = *q -
'A' + 10;
501 TIXMLASSERT( digit == 0 || mult <= UINT_MAX / digit );
502 const unsigned int digitScaled = mult * digit;
517 q = strchr( q, SEMICOLON );
527 while ( *q !=
'#' ) {
528 if ( *q >=
'0' && *q <=
'9' ) {
529 const unsigned int digit = *q -
'0';
531 TIXMLASSERT( digit == 0 || mult <= UINT_MAX / digit );
532 const unsigned int digitScaled = mult * digit;
545 ConvertUTF32ToUTF8( ucs, value, length );
546 return p + delta + 1;
566 TIXML_SNPRINTF( buffer, bufferSize,
"%s", v ? writeBoolTrue : writeBoolFalse);
611 if ( ToInt( str, &ival )) {
612 *value = (ival==0) ?
false :
true;
615 if ( StringEqual( str,
"true" ) ) {
619 else if ( StringEqual( str,
"false" ) ) {
660 char*
const start = p;
661 int const startLine = _parseCurLineNum;
670 static const char* xmlHeader = {
"<?" };
671 static const char* commentHeader = {
"<!--" };
672 static const char* cdataHeader = {
"<![CDATA[" };
673 static const char* dtdHeader = {
"<!" };
674 static const char* elementHeader = {
"<" };
676 static const int xmlHeaderLen = 2;
677 static const int commentHeaderLen = 4;
678 static const int cdataHeaderLen = 9;
679 static const int dtdHeaderLen = 2;
680 static const int elementHeaderLen = 1;
686 returnNode = CreateUnlinkedNode<XMLDeclaration>( _commentPool );
691 returnNode = CreateUnlinkedNode<XMLComment>( _commentPool );
693 p += commentHeaderLen;
696 XMLText* text = CreateUnlinkedNode<XMLText>( _textPool );
703 returnNode = CreateUnlinkedNode<XMLUnknown>( _commentPool );
708 returnNode = CreateUnlinkedNode<XMLElement>( _elementPool );
710 p += elementHeaderLen;
713 returnNode = CreateUnlinkedNode<XMLText>( _textPool );
716 _parseCurLineNum = startLine;
731 if ( !node->Accept( visitor ) ) {
747 _firstChild( 0 ), _lastChild( 0 ),
748 _prev( 0 ), _next( 0 ),
784 if (!clone)
return 0;
816 if ( child->
_prev ) {
819 if ( child->
_next ) {
912 if ( afterThis->
_parent !=
this ) {
916 if ( afterThis == addThis ) {
924 if ( afterThis->
_next == 0 ) {
929 addThis->
_prev = afterThis;
932 afterThis->
_next = addThis;
943 const XMLElement* element = node->ToElementWithName( name );
955 const XMLElement* element = node->ToElementWithName( name );
967 const XMLElement* element = node->ToElementWithName( name );
979 const XMLElement* element = node->ToElementWithName( name );
1023 p = node->
ParseDeep( p, &endTag, curLineNumPtr );
1042 bool wellLocated =
false;
1056 if ( !wellLocated ) {
1067 if ( parentEndTag ) {
1077 bool mismatch =
false;
1078 if ( endTag.
Empty() ) {
1134 if ( element == 0 ) {
1149 if ( this->CData() ) {
1196 return visitor->
Visit( *
this );
1244 return visitor->
Visit( *
this );
1294 return visitor->
Visit( *
this );
1341 return visitor->
Visit( *
this );
1348 return _name.GetStr();
1359 p = _name.ParseName( p );
1372 if ( *p !=
'\"' && *p !=
'\'' ) {
1376 char endTag[2] = { *p, 0 };
1499 _closingType( OPEN ),
1540 int i = defaultValue;
1547 unsigned i = defaultValue;
1554 int64_t i = defaultValue;
1561 bool b = defaultValue;
1568 double d = defaultValue;
1575 float f = defaultValue;
1727 int i = defaultValue;
1734 unsigned i = defaultValue;
1741 int64_t i = defaultValue;
1748 bool b = defaultValue;
1755 double d = defaultValue;
1762 float f = defaultValue;
1774 last = attrib, attrib = attrib->
_next ) {
1784 last->
_next = attrib;
1846 if ( prevAttribute ) {
1848 prevAttribute->
_next = attrib;
1854 prevAttribute = attrib;
1857 else if ( *p ==
'>' ) {
1862 else if ( *p ==
'/' && *(p+1) ==
'>' ) {
1876 if ( attribute == 0 ) {
1881 pool->
Free( attribute );
1890 attrib->_memPool->SetTracked();
1971 if ( !node->Accept( visitor ) ) {
1986 "XML_WRONG_ATTRIBUTE_TYPE",
1987 "XML_ERROR_FILE_NOT_FOUND",
1988 "XML_ERROR_FILE_COULD_NOT_BE_OPENED",
1989 "XML_ERROR_FILE_READ_ERROR",
1990 "XML_ERROR_PARSING_ELEMENT",
1991 "XML_ERROR_PARSING_ATTRIBUTE",
1992 "XML_ERROR_PARSING_TEXT",
1993 "XML_ERROR_PARSING_CDATA",
1994 "XML_ERROR_PARSING_COMMENT",
1995 "XML_ERROR_PARSING_DECLARATION",
1996 "XML_ERROR_PARSING_UNKNOWN",
1997 "XML_ERROR_EMPTY_DOCUMENT",
1998 "XML_ERROR_MISMATCHED_ELEMENT",
1999 "XML_ERROR_PARSING",
2000 "XML_CAN_NOT_CONVERT_TEXT",
2002 "XML_ELEMENT_DEPTH_EXCEEDED" 2009 _processEntities( processEntities ),
2011 _whitespaceMode( whitespaceMode ),
2015 _parseCurLineNum( 0 ),
2039 for (
int i = 0; i <
_unlinked.Size(); ++i) {
2054 #ifdef TINYXML2_DEBUG 2055 const bool hadError =
Error();
2070 #ifdef TINYXML2_DEBUG 2084 if (target ==
this) {
2121 dec->
SetValue( str ? str :
"xml version=\"1.0\" encoding=\"UTF-8\"" );
2133 static FILE*
callfopen(
const char* filepath,
const char* mode )
2137 #if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE) 2139 errno_t err = fopen_s( &fp, filepath, mode );
2144 FILE* fp = fopen( filepath, mode );
2193 <
bool = (
sizeof(
unsigned long) >=
sizeof(
size_t))>
2195 static bool Fits(
unsigned long value )
2197 return value < (size_t)-1;
2213 fseek( fp, 0, SEEK_SET );
2214 if ( fgetc( fp ) == EOF && ferror( fp ) != 0 ) {
2219 fseek( fp, 0, SEEK_END );
2220 const long filelength = ftell( fp );
2221 fseek( fp, 0, SEEK_SET );
2222 if ( filelength == -1L ) {
2234 if ( filelength == 0 ) {
2239 const size_t size = filelength;
2243 if ( read != size ) {
2289 if ( len == 0 || !p || !*p ) {
2293 if ( len == (
size_t)(-1) ) {
2323 Accept( &stdoutStreamer );
2335 size_t BUFFER_SIZE = 1000;
2336 char*
buffer =
new char[BUFFER_SIZE];
2339 TIXML_SNPRINTF(buffer, BUFFER_SIZE,
"Error=%s ErrorID=%d (0x%x) Line number=%d",
ErrorIDToName(error),
int(error),
int(error), lineNum);
2342 size_t len = strlen(buffer);
2344 len = strlen(buffer);
2347 va_start(va, format);
2411 _elementJustOpened( false ),
2413 _firstElement( true ),
2418 _compactMode( compact ),
2426 const char entityValue = entities[i].
value;
2427 const unsigned char flagIndex = (
unsigned char)entityValue;
2441 va_start( va, format );
2444 vfprintf(
_fp, format, va );
2451 va_start( va, format );
2463 fwrite ( data ,
sizeof(
char), size,
_fp);
2467 memcpy( p, data, size );
2488 for(
int i=0; i<depth; ++i ) {
2508 if ( flag[(
unsigned char)(*q)] ) {
2510 const size_t delta = q - p;
2511 const int toPrint = ( INT_MAX < delta ) ? INT_MAX : (
int)delta;
2512 Write( p, toPrint );
2515 bool entityPatternPrinted =
false;
2517 if ( entities[i].value == *q ) {
2519 Write( entities[i].pattern, entities[i].length );
2521 entityPatternPrinted =
true;
2525 if ( !entityPatternPrinted ) {
2538 const size_t delta = q - p;
2539 const int toPrint = ( INT_MAX < delta ) ? INT_MAX : (
int)delta;
2540 Write( p, toPrint );
2553 Write( reinterpret_cast< const char* >( bom ) );
2569 if ( !compactMode ) {
2654 if (
_depth == 0 && !compactMode) {
2677 Write(
"<![CDATA[" );
2791 if ( element.
Parent() ) {
2796 while ( attribute ) {
2798 attribute = attribute->
Next();
char * Identify(char *p, XMLNode **node)
XMLError QueryUnsignedAttribute(const char *name, unsigned int *value) const
See QueryIntAttribute()
virtual XMLNode * ShallowClone(XMLDocument *document) const =0
static bool IsNameStartChar(unsigned char ch)
virtual XMLComment * ToComment()
Safely cast to a Comment, or null.
void Print(const char *format,...)
virtual XMLNode * ShallowClone(XMLDocument *document) const
virtual bool Accept(XMLVisitor *visitor) const
virtual bool ShallowEqual(const XMLNode *compare) const
const XMLNode * NextSibling() const
Get the next (right) sibling node of this node.
void SetAttribute(const char *name, const char *value)
Sets the named attribute to value.
static const char LINE_FEED
XMLError QueryFloatAttribute(const char *name, float *value) const
See QueryIntAttribute()
Whitespace WhitespaceMode() const
XMLPrinter(FILE *file=0, bool compact=false, int depth=0)
XMLError QueryDoubleText(double *dval) const
See QueryIntText()
void PushComment(const char *comment)
Add a comment.
virtual void PrintSpace(int depth)
float FloatAttribute(const char *name, float defaultValue=0) const
See IntAttribute()
XMLDeclaration(XMLDocument *doc)
void PrintError() const
A (trivial) utility function that prints the ErrorStr() to stdout.
XMLError QueryIntAttribute(const char *name, int *value) const
static bool Fits(unsigned long)
XMLError QueryDoubleValue(double *value) const
See QueryIntValue.
static const unsigned char TIXML_UTF_LEAD_0
void PushDeclaration(const char *value)
void DeepCopy(XMLDocument *target) const
static bool IsNameChar(unsigned char ch)
DynArray< char, 20 > _buffer
void SetAttribute(const char *value)
Set the attribute to a string value.
const XMLNode * LastChild() const
Get the last child node, or null if none exists.
const XMLElement * NextSiblingElement(const char *name=0) const
Get the next (right) sibling element of this node, with an optionally supplied name.
char * ParseDeep(char *p, StrPair *parentEndTag, int *curLineNumPtr)
virtual bool Visit(const XMLDeclaration &)
Visit a declaration.
void PushText(const char *text, bool cdata=false)
Add a text node.
int64_t Int64Text(int64_t defaultValue=0) const
See QueryIntText()
void CollapseWhitespace()
static raw_event_t * buffer
void PushHeader(bool writeBOM, bool writeDeclaration)
XMLError QueryFloatText(float *fval) const
See QueryIntText()
static bool ToInt64(const char *str, int64_t *value)
const char * Value() const
void TransferTo(StrPair *other)
const char * Value() const
The value of the attribute.
const XMLAttribute * Next() const
The next attribute in the list.
void MarkInUse(XMLNode *)
virtual bool VisitExit(const XMLDocument &)
Visit a document.
void SetStr(const char *str, int flags=0)
char * ParseDeep(char *p, StrPair *parentEndTag, int *curLineNumPtr)
virtual XMLNode * ShallowClone(XMLDocument *document) const
const XMLNode * Parent() const
Get the parent of this node on the DOM.
virtual void SetTracked()=0
static const char DOUBLE_QUOTE
XMLNode * InsertFirstChild(XMLNode *addThis)
const char * Name() const
The name of the attribute.
void Write(const char *data, size_t size)
XMLAttribute * FindOrCreateAttribute(const char *name)
virtual bool ShallowEqual(const XMLNode *compare) const
const XMLElement * FirstChildElement(const char *name=0) const
virtual bool CompactMode(const XMLElement &)
virtual bool VisitExit(const XMLDocument &)
Visit a document.
bool ProcessEntities() const
virtual bool VisitEnter(const XMLDocument &)
Visit a document.
unsigned UnsignedAttribute(const char *name, unsigned defaultValue=0) const
See IntAttribute()
void DeleteAttribute(const char *name)
XMLDocument(bool processEntities=true, Whitespace whitespaceMode=PRESERVE_WHITESPACE)
constructor
XMLError QueryBoolValue(bool *value) const
See QueryIntValue.
virtual bool VisitEnter(const XMLDocument &)
Visit a document.
const XMLNode * FirstChild() const
Get the first child node, or null if none exists.
virtual XMLUnknown * ToUnknown()
Safely cast to an Unknown, or null.
char * ParseDeep(char *p, StrPair *parentEndTag, int *curLineNumPtr)
static const Entity entities[NUM_ENTITIES]
static const char * ErrorIDToName(XMLError errorID)
const XMLElement * ToElementWithName(const char *name) const
char * ParseText(char *in, const char *endTag, int strFlags, int *curLineNumPtr)
XMLError QueryDoubleAttribute(const char *name, double *value) const
See QueryIntAttribute()
static const char * writeBoolFalse
static bool StringEqual(const char *p, const char *q, int nChar=INT_MAX)
XMLElement * NewElement(const char *name)
virtual bool Accept(XMLVisitor *visitor) const
void SetName(const char *str, bool staticMem=false)
Set the name of the element.
virtual XMLDeclaration * ToDeclaration()
Safely cast to a Declaration, or null.
void SetText(const char *inText)
ElementClosingType _closingType
void SetCData(bool isCData)
Declare whether this should be CDATA or standard text.
MemPoolT< sizeof(XMLText) > _textPool
static const unsigned char TIXML_UTF_LEAD_2
XMLError LoadFile(const char *filename)
virtual void Free(void *)=0
XMLElement(XMLDocument *doc)
virtual XMLNode * ShallowClone(XMLDocument *document) const
float FloatText(float defaultValue=0) const
See QueryIntText()
virtual bool Accept(XMLVisitor *visitor) const
XMLError QueryInt64Value(int64_t *value) const
See QueryIntValue.
virtual XMLText * ToText()
Safely cast to Text, or null.
static bool ToBool(const char *str, bool *value)
virtual bool ShallowEqual(const XMLNode *compare) const
void SetError(XMLError error, int lineNum, const char *format,...)
static const char * writeBoolTrue
virtual bool Accept(XMLVisitor *visitor) const
static int TIXML_VSCPRINTF(const char *format, va_list va)
static const char CARRIAGE_RETURN
bool Error() const
Return true if there was an error parsing the document.
const XMLElement * PreviousSiblingElement(const char *name=0) const
Get the previous (left) sibling element of this node, with an optionally supplied name...
void Clear()
Clear the document, resetting it to the initial state.
static void SetBoolSerialization(const char *writeTrue, const char *writeFalse)
XMLError SaveFile(const char *filename, bool compact=false)
static const char * SkipWhiteSpace(const char *p, int *curLineNumPtr)
static const char * GetCharacterRef(const char *p, char *value, int *length)
XMLNode * DeepClone(XMLDocument *target) const
XMLUnknown(XMLDocument *doc)
static FILE * callfopen(const char *filepath, const char *mode)
static bool ToInt(const char *str, int *value)
static const char SINGLE_QUOTE
void Print(XMLPrinter *streamer=0) const
XMLNode * InsertAfterChild(XMLNode *afterThis, XMLNode *addThis)
const XMLAttribute * FirstAttribute() const
Return the first attribute in the list.
bool _entityFlag[ENTITY_RANGE]
const T * data(const std::vector< T, Alloc > &v)
char * ParseAttributes(char *p, int *curLineNumPtr)
XMLError QueryBoolText(bool *bval) const
See QueryIntText()
bool _restrictedEntityFlag[ENTITY_RANGE]
XMLComment * NewComment(const char *comment)
XMLError QueryInt64Attribute(const char *name, int64_t *value) const
See QueryIntAttribute()
DynArray< XMLNode *, 10 > _unlinked
virtual bool Accept(XMLVisitor *visitor) const
static bool ToFloat(const char *str, float *value)
static bool ToDouble(const char *str, double *value)
void DeleteNode(XMLNode *node)
int64_t Int64Attribute(const char *name, int64_t defaultValue=0) const
See IntAttribute()
XMLText * NewText(const char *text)
const XMLDocument * GetDocument() const
Get the XMLDocument that owns this XMLNode.
XMLAttribute * _rootAttribute
void SetName(const char *name)
XMLAttribute * CreateAttribute()
char * ParseName(char *in)
static bool ToUnsigned(const char *str, unsigned *value)
void InsertChildPreamble(XMLNode *insertThis) const
ElementClosingType ClosingType() const
int IntText(int defaultValue=0) const
static void ToStr(int v, char *buffer, int bufferSize)
XMLUnknown * NewUnknown(const char *text)
const XMLElement * LastChildElement(const char *name=0) const
void PushAttribute(const char *name, const char *value)
If streaming, add an attribute to an open element.
MemPoolT< sizeof(XMLAttribute) > _attributePool
int IntAttribute(const char *name, int defaultValue=0) const
virtual XMLElement * ToElement()
Safely cast to an Element, or null.
virtual XMLDocument * ToDocument()
Safely cast to a Document, or null.
XMLError QueryFloatValue(float *value) const
See QueryIntValue.
XMLError QueryInt64Text(int64_t *uval) const
See QueryIntText()
XMLError QueryIntValue(int *value) const
virtual bool Visit(const XMLText &text)
Visit a text node.
char * ParseDeep(char *p, StrPair *parentEndTag, int *curLineNumPtr)
bool CData() const
Returns true if this is a CDATA text element.
XMLDeclaration * NewDeclaration(const char *text=0)
XMLError QueryBoolAttribute(const char *name, bool *value) const
See QueryIntAttribute()
void PrintString(const char *, bool restrictedEntitySet)
XMLError QueryUnsignedText(unsigned *uval) const
See QueryIntText()
const char * GetText() const
virtual void CloseElement(bool compactMode=false)
If streaming, close the Element.
DynArray< const char *, 10 > _stack
static const char * _errorNames[XML_ERROR_COUNT]
static bool IsWhiteSpace(char p)
XMLError QueryUnsignedValue(unsigned int *value) const
See QueryIntValue.
virtual char * ParseDeep(char *p, StrPair *parentEndTag, int *curLineNumPtr)
const char * ErrorStr() const
void SetInternedStr(const char *str)
void OpenElement(const char *name, bool compactMode=false)
const char * ErrorName() const
const char * Name() const
Get the name of an element (which is the Value() of the node.)
double DoubleAttribute(const char *name, double defaultValue=0) const
See IntAttribute()
double DoubleText(double defaultValue=0) const
See QueryIntText()
void DeleteChild(XMLNode *node)
bool BoolText(bool defaultValue=false) const
See QueryIntText()
static const char * ReadBOM(const char *p, bool *hasBOM)
void SetValue(const char *val, bool staticMem=false)
const char * Attribute(const char *name, const char *value=0) const
bool NoChildren() const
Returns true if this node has no children.
XMLError QueryIntText(int *ival) const
bool BoolAttribute(const char *name, bool defaultValue=false) const
See IntAttribute()
virtual XMLNode * ShallowClone(XMLDocument *document) const
static const unsigned char TIXML_UTF_LEAD_1
void Unlink(XMLNode *child)
static void ConvertUTF32ToUTF8(unsigned long input, char *output, int *length)
static const int NUM_ENTITIES
static void DeleteNode(XMLNode *node)
static const int TINYXML2_MAX_ELEMENT_DEPTH
char * ParseDeep(char *p, bool processEntities, int *curLineNumPtr)
void SealElementIfJustOpened()
unsigned UnsignedText(unsigned defaultValue=0) const
See QueryIntText()
MemPoolT< sizeof(XMLElement) > _elementPool
static bool Fits(unsigned long value)
virtual bool ShallowEqual(const XMLNode *compare) const
MemPoolT< sizeof(XMLComment) > _commentPool
XMLNode * InsertEndChild(XMLNode *addThis)
virtual ~XMLDeclaration()
const XMLAttribute * FindAttribute(const char *name) const
Query a specific attribute in the list.
void PushUnknown(const char *value)