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 );
1036 if ( wellLocated ) {
1040 if ( !existingNode->ToDeclaration() ) {
1041 wellLocated =
false;
1046 if ( !wellLocated ) {
1057 if ( parentEndTag ) {
1067 bool mismatch =
false;
1068 if ( endTag.
Empty() ) {
1124 if ( element == 0 ) {
1139 if ( this->CData() ) {
1186 return visitor->
Visit( *
this );
1234 return visitor->
Visit( *
this );
1284 return visitor->
Visit( *
this );
1331 return visitor->
Visit( *
this );
1338 return _name.GetStr();
1349 p = _name.ParseName( p );
1362 if ( *p !=
'\"' && *p !=
'\'' ) {
1366 char endTag[2] = { *p, 0 };
1489 _closingType( OPEN ),
1530 int i = defaultValue;
1537 unsigned i = defaultValue;
1544 int64_t i = defaultValue;
1551 bool b = defaultValue;
1558 double d = defaultValue;
1565 float f = defaultValue;
1717 int i = defaultValue;
1724 unsigned i = defaultValue;
1731 int64_t i = defaultValue;
1738 bool b = defaultValue;
1745 double d = defaultValue;
1752 float f = defaultValue;
1764 last = attrib, attrib = attrib->
_next ) {
1774 last->
_next = attrib;
1836 if ( prevAttribute ) {
1838 prevAttribute->
_next = attrib;
1844 prevAttribute = attrib;
1847 else if ( *p ==
'>' ) {
1852 else if ( *p ==
'/' && *(p+1) ==
'>' ) {
1866 if ( attribute == 0 ) {
1871 pool->
Free( attribute );
1880 attrib->_memPool->SetTracked();
1961 if ( !node->Accept( visitor ) ) {
1976 "XML_WRONG_ATTRIBUTE_TYPE",
1977 "XML_ERROR_FILE_NOT_FOUND",
1978 "XML_ERROR_FILE_COULD_NOT_BE_OPENED",
1979 "XML_ERROR_FILE_READ_ERROR",
1980 "UNUSED_XML_ERROR_ELEMENT_MISMATCH",
1981 "XML_ERROR_PARSING_ELEMENT",
1982 "XML_ERROR_PARSING_ATTRIBUTE",
1983 "UNUSED_XML_ERROR_IDENTIFYING_TAG",
1984 "XML_ERROR_PARSING_TEXT",
1985 "XML_ERROR_PARSING_CDATA",
1986 "XML_ERROR_PARSING_COMMENT",
1987 "XML_ERROR_PARSING_DECLARATION",
1988 "XML_ERROR_PARSING_UNKNOWN",
1989 "XML_ERROR_EMPTY_DOCUMENT",
1990 "XML_ERROR_MISMATCHED_ELEMENT",
1991 "XML_ERROR_PARSING",
1992 "XML_CAN_NOT_CONVERT_TEXT",
1994 "XML_ELEMENT_DEPTH_EXCEEDED" 2001 _processEntities( processEntities ),
2003 _whitespaceMode( whitespaceMode ),
2007 _parseCurLineNum( 0 ),
2031 for (
int i = 0; i <
_unlinked.Size(); ++i) {
2046 #ifdef TINYXML2_DEBUG 2047 const bool hadError =
Error();
2062 #ifdef TINYXML2_DEBUG 2076 if (target ==
this) {
2113 dec->
SetValue( str ? str :
"xml version=\"1.0\" encoding=\"UTF-8\"" );
2125 static FILE*
callfopen(
const char* filepath,
const char* mode )
2129 #if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE) 2131 errno_t err = fopen_s( &fp, filepath, mode );
2136 FILE* fp = fopen( filepath, mode );
2185 <
bool = (
sizeof(
unsigned long) >=
sizeof(
size_t))>
2187 static bool Fits(
unsigned long value )
2189 return value < (size_t)-1;
2205 fseek( fp, 0, SEEK_SET );
2206 if ( fgetc( fp ) == EOF && ferror( fp ) != 0 ) {
2211 fseek( fp, 0, SEEK_END );
2212 const long filelength = ftell( fp );
2213 fseek( fp, 0, SEEK_SET );
2214 if ( filelength == -1L ) {
2226 if ( filelength == 0 ) {
2231 const size_t size = filelength;
2235 if ( read != size ) {
2281 if ( len == 0 || !p || !*p ) {
2285 if ( len == (
size_t)(-1) ) {
2315 Accept( &stdoutStreamer );
2327 size_t BUFFER_SIZE = 1000;
2328 char*
buffer =
new char[BUFFER_SIZE];
2330 TIXML_SNPRINTF(buffer, BUFFER_SIZE,
"Error=%s ErrorID=%d (0x%x) Line number=%d",
ErrorIDToName(error),
int(error),
int(error), lineNum);
2333 size_t len = strlen(buffer);
2335 len = strlen(buffer);
2338 va_start(va, format);
2402 _elementJustOpened( false ),
2404 _firstElement( true ),
2409 _compactMode( compact ),
2417 const char entityValue = entities[i].
value;
2418 const unsigned char flagIndex = (
unsigned char)entityValue;
2432 va_start( va, format );
2435 vfprintf(
_fp, format, va );
2442 va_start( va, format );
2454 fwrite ( data ,
sizeof(
char), size,
_fp);
2458 memcpy( p, data, size );
2479 for(
int i=0; i<depth; ++i ) {
2499 if ( flag[(
unsigned char)(*q)] ) {
2501 const size_t delta = q - p;
2502 const int toPrint = ( INT_MAX < delta ) ? INT_MAX : (
int)delta;
2503 Write( p, toPrint );
2506 bool entityPatternPrinted =
false;
2508 if ( entities[i].value == *q ) {
2510 Write( entities[i].pattern, entities[i].length );
2512 entityPatternPrinted =
true;
2516 if ( !entityPatternPrinted ) {
2531 const size_t delta = q - p;
2532 const int toPrint = ( INT_MAX < delta ) ? INT_MAX : (
int)delta;
2533 Write( p, toPrint );
2542 Write( reinterpret_cast< const char* >( bom ) );
2558 if ( !compactMode ) {
2643 if (
_depth == 0 && !compactMode) {
2666 Write(
"<![CDATA[" );
2780 if ( element.
Parent() ) {
2785 while ( attribute ) {
2787 attribute = attribute->
Next();
XMLText * NewText(const char *text)
virtual bool Visit(const XMLText &text)
Visit a text node.
char * ParseAttributes(char *p, int *curLineNumPtr)
void CollapseWhitespace()
const T * data(const std::vector< T, Alloc > &v)
bool Error() const
Return true if there was an error parsing the document.
static const char LINE_FEED
void SetText(const char *inText)
void SealElementIfJustOpened()
const XMLElement * FirstChildElement(const char *name=0) const
static void ToStr(int v, char *buffer, int bufferSize)
XMLAttribute * FindOrCreateAttribute(const char *name)
const XMLElement * ToElementWithName(const char *name) const
XMLError QueryIntValue(int *value) const
unsigned UnsignedAttribute(const char *name, unsigned defaultValue=0) const
See IntAttribute()
XMLError QueryUnsignedAttribute(const char *name, unsigned int *value) const
See QueryIntAttribute()
static const char * GetCharacterRef(const char *p, char *value, int *length)
virtual XMLDocument * ToDocument()
Safely cast to a Document, or null.
static const unsigned char TIXML_UTF_LEAD_0
XMLError LoadFile(const char *filename)
void PushComment(const char *comment)
Add a comment.
XMLError QueryFloatValue(float *value) const
See QueryIntValue.
static const Entity entities[NUM_ENTITIES]
virtual bool Accept(XMLVisitor *visitor) const
static raw_event_t * buffer
void SetError(XMLError error, int lineNum, const char *format,...)
XMLAttribute * _rootAttribute
MemPoolT< sizeof(XMLAttribute) > _attributePool
ElementClosingType ClosingType() const
virtual XMLNode * ShallowClone(XMLDocument *document) const =0
static bool ToFloat(const char *str, float *value)
char * ParseDeep(char *p, StrPair *parentEndTag, int *curLineNumPtr)
const XMLElement * NextSiblingElement(const char *name=0) const
Get the next (right) sibling element of this node, with an optionally supplied name.
virtual XMLComment * ToComment()
Safely cast to a Comment, or null.
XMLError QueryBoolText(bool *bval) const
See QueryIntText()
XMLError QueryInt64Value(int64_t *value) const
See QueryIntValue.
void PushHeader(bool writeBOM, bool writeDeclaration)
static const char * SkipWhiteSpace(const char *p, int *curLineNumPtr)
bool CData() const
Returns true if this is a CDATA text element.
void Unlink(XMLNode *child)
void PushDeclaration(const char *value)
virtual void Free(void *)=0
void PrintError() const
A (trivial) utility function that prints the ErrorStr() to stdout.
static bool IsNameChar(unsigned char ch)
XMLNode * DeepClone(XMLDocument *target) const
static bool IsWhiteSpace(char p)
static const char * ReadBOM(const char *p, bool *hasBOM)
void TransferTo(StrPair *other)
const XMLElement * PreviousSiblingElement(const char *name=0) const
Get the previous (left) sibling element of this node, with an optionally supplied name...
const XMLAttribute * FindAttribute(const char *name) const
Query a specific attribute in the list.
char * ParseDeep(char *p, bool processEntities, int *curLineNumPtr)
int IntAttribute(const char *name, int defaultValue=0) const
static const char DOUBLE_QUOTE
const XMLNode * FirstChild() const
Get the first child node, or null if none exists.
static const char * _errorNames[XML_ERROR_COUNT]
static bool ToBool(const char *str, bool *value)
XMLAttribute * CreateAttribute()
virtual bool VisitExit(const XMLDocument &)
Visit a document.
char * ParseName(char *in)
const char * Value() const
The value of the attribute.
double DoubleAttribute(const char *name, double defaultValue=0) const
See IntAttribute()
void SetAttribute(const char *value)
Set the attribute to a string value.
XMLError QueryFloatAttribute(const char *name, float *value) const
See QueryIntAttribute()
void Print(const char *format,...)
virtual bool ShallowEqual(const XMLNode *compare) const
XMLPrinter(FILE *file=0, bool compact=false, int depth=0)
int64_t Int64Text(int64_t defaultValue=0) const
See QueryIntText()
static const char * writeBoolTrue
void Clear()
Clear the document, resetting it to the initial state.
void MarkInUse(XMLNode *)
void SetAttribute(const char *name, const char *value)
Sets the named attribute to value.
XMLError QueryDoubleText(double *dval) const
See QueryIntText()
int IntText(int defaultValue=0) const
XMLElement * NewElement(const char *name)
virtual XMLNode * ShallowClone(XMLDocument *document) const
XMLError QueryDoubleValue(double *value) const
See QueryIntValue.
XMLError QueryInt64Attribute(const char *name, int64_t *value) const
See QueryIntAttribute()
bool ProcessEntities() const
DynArray< char, 20 > _buffer
void DeepCopy(XMLDocument *target) const
static const unsigned char TIXML_UTF_LEAD_2
static bool ToInt(const char *str, int *value)
void SetName(const char *name)
static const char * ErrorIDToName(XMLError errorID)
static void SetBoolSerialization(const char *writeTrue, const char *writeFalse)
double DoubleText(double defaultValue=0) const
See QueryIntText()
float FloatAttribute(const char *name, float defaultValue=0) const
See IntAttribute()
float FloatText(float defaultValue=0) const
See QueryIntText()
bool BoolText(bool defaultValue=false) const
See QueryIntText()
unsigned UnsignedText(unsigned defaultValue=0) const
See QueryIntText()
XMLError SaveFile(const char *filename, bool compact=false)
static bool ToUnsigned(const char *str, unsigned *value)
const XMLNode * Parent() const
Get the parent of this node on the DOM.
void PushText(const char *text, bool cdata=false)
Add a text node.
const XMLAttribute * Next() const
The next attribute in the list.
static int TIXML_VSCPRINTF(const char *format, va_list va)
XMLError QueryDoubleAttribute(const char *name, double *value) const
See QueryIntAttribute()
static const char CARRIAGE_RETURN
void SetName(const char *str, bool staticMem=false)
Set the name of the element.
XMLComment * NewComment(const char *comment)
virtual void CloseElement(bool compactMode=false)
If streaming, close the Element.
const char * ErrorStr() const
static bool ToInt64(const char *str, int64_t *value)
void DeleteNode(XMLNode *node)
virtual void SetTracked()=0
const char * Attribute(const char *name, const char *value=0) const
virtual bool VisitEnter(const XMLDocument &)
Visit a document.
static bool ToDouble(const char *str, double *value)
MemPoolT< sizeof(XMLComment) > _commentPool
const char * Name() const
The name of the attribute.
const char * GetText() const
XMLError QueryIntText(int *ival) const
static bool Fits(unsigned long value)
static const char SINGLE_QUOTE
virtual bool VisitExit(const XMLDocument &)
Visit a document.
virtual ~XMLDeclaration()
void OpenElement(const char *name, bool compactMode=false)
void SetStr(const char *str, int flags=0)
virtual XMLNode * ShallowClone(XMLDocument *document) const
void SetCData(bool isCData)
Declare whether this should be CDATA or standard text.
virtual bool Accept(XMLVisitor *visitor) const
char * ParseDeep(char *p, StrPair *parentEndTag, int *curLineNumPtr)
XMLDeclaration(XMLDocument *doc)
XMLNode * InsertFirstChild(XMLNode *addThis)
char * ParseText(char *in, const char *endTag, int strFlags, int *curLineNumPtr)
const XMLDocument * GetDocument() const
Get the XMLDocument that owns this XMLNode.
XMLElement(XMLDocument *doc)
XMLError QueryInt64Text(int64_t *uval) const
See QueryIntText()
void Write(const char *data, size_t size)
virtual XMLUnknown * ToUnknown()
Safely cast to an Unknown, or null.
char * Identify(char *p, XMLNode **node)
ElementClosingType _closingType
static bool StringEqual(const char *p, const char *q, int nChar=INT_MAX)
virtual bool ShallowEqual(const XMLNode *compare) const
char * ParseDeep(char *p, StrPair *parentEndTag, int *curLineNumPtr)
virtual XMLNode * ShallowClone(XMLDocument *document) const
void InsertChildPreamble(XMLNode *insertThis) const
const char * Value() const
static void DeleteNode(XMLNode *node)
XMLError QueryFloatText(float *fval) const
See QueryIntText()
void SetValue(const char *val, bool staticMem=false)
char * ParseDeep(char *p, StrPair *parentEndTag, int *curLineNumPtr)
XMLError QueryUnsignedText(unsigned *uval) const
See QueryIntText()
static const int NUM_ENTITIES
void PushUnknown(const char *value)
virtual bool Accept(XMLVisitor *visitor) const
void PushAttribute(const char *name, const char *value)
If streaming, add an attribute to an open element.
DynArray< const char *, 10 > _stack
XMLError QueryIntAttribute(const char *name, int *value) const
static void ConvertUTF32ToUTF8(unsigned long input, char *output, int *length)
bool BoolAttribute(const char *name, bool defaultValue=false) const
See IntAttribute()
void DeleteAttribute(const char *name)
void PrintString(const char *, bool restrictedEntitySet)
DynArray< XMLNode *, 10 > _unlinked
const XMLElement * LastChildElement(const char *name=0) const
XMLUnknown(XMLDocument *doc)
XMLError QueryUnsignedValue(unsigned int *value) const
See QueryIntValue.
static bool IsNameStartChar(unsigned char ch)
void DeleteChild(XMLNode *node)
virtual XMLText * ToText()
Safely cast to Text, or null.
virtual XMLNode * ShallowClone(XMLDocument *document) const
XMLError QueryBoolAttribute(const char *name, bool *value) const
See QueryIntAttribute()
virtual char * ParseDeep(char *p, StrPair *parentEndTag, int *curLineNumPtr)
virtual bool Accept(XMLVisitor *visitor) const
virtual void PrintSpace(int depth)
XMLUnknown * NewUnknown(const char *text)
virtual bool CompactMode(const XMLElement &)
MemPoolT< sizeof(XMLText) > _textPool
XMLDeclaration * NewDeclaration(const char *text=0)
bool NoChildren() const
Returns true if this node has no children.
MemPoolT< sizeof(XMLElement) > _elementPool
const XMLAttribute * FirstAttribute() const
Return the first attribute in the list.
static const char * writeBoolFalse
virtual bool ShallowEqual(const XMLNode *compare) const
virtual bool Visit(const XMLDeclaration &)
Visit a declaration.
bool _restrictedEntityFlag[ENTITY_RANGE]
virtual bool VisitEnter(const XMLDocument &)
Visit a document.
void Print(XMLPrinter *streamer=0) const
XMLError QueryBoolValue(bool *value) const
See QueryIntValue.
Whitespace WhitespaceMode() const
XMLNode * InsertAfterChild(XMLNode *afterThis, XMLNode *addThis)
virtual XMLDeclaration * ToDeclaration()
Safely cast to a Declaration, or null.
static const unsigned char TIXML_UTF_LEAD_1
virtual XMLElement * ToElement()
Safely cast to an Element, or null.
static bool Fits(unsigned long)
const char * ErrorName() const
virtual bool Accept(XMLVisitor *visitor) const
static FILE * callfopen(const char *filepath, const char *mode)
XMLNode * InsertEndChild(XMLNode *addThis)
const XMLNode * NextSibling() const
Get the next (right) sibling node of this node.
static const int TINYXML2_MAX_ELEMENT_DEPTH
bool _entityFlag[ENTITY_RANGE]
int64_t Int64Attribute(const char *name, int64_t defaultValue=0) const
See IntAttribute()
XMLDocument(bool processEntities=true, Whitespace whitespaceMode=PRESERVE_WHITESPACE)
constructor
const char * Name() const
Get the name of an element (which is the Value() of the node.)
virtual bool ShallowEqual(const XMLNode *compare) const
void SetInternedStr(const char *str)