3 ===================================================================
4 RCS file: /cvsroot/tinyxml/tinyxml/tinyxml.cpp,v
5 retrieving revision 1.105
6 diff -u -r1.105 tinyxml.cpp
7 --- tinyxml.cpp 5 Jun 2010 19:06:57 -0000 1.105
8 +++ tinyxml.cpp 19 Jul 2010 21:24:16 -0000
11 unsigned char c = (unsigned char) str[i];
14 - && i < ( (int)str.length() - 2 )
16 - && str[i+2] == 'x' )
18 - // Hexadecimal character reference.
19 - // Pass through unchanged.
20 - // © -- copyright symbol, for example.
22 - // The -1 is a bug fix from Rob Laveaux. It keeps
23 - // an overflow from happening if there is no ';'.
24 - // There are actually 2 ways to exit this loop -
25 - // while fails (error case) and break (semicolon found).
26 - // However, there is no mechanism (currently) for
27 - // this function to return an error.
28 - while ( i<(int)str.length()-1 )
30 - outString->append( str.c_str() + i, 1 );
32 - if ( str[i] == ';' )
36 - else if ( c == '&' )
39 outString->append( entity[0].str, entity[0].strLength );
42 ===================================================================
43 RCS file: /cvsroot/tinyxml/tinyxml/xmltest.cpp,v
44 retrieving revision 1.89
45 diff -u -r1.89 xmltest.cpp
46 --- xmltest.cpp 5 Jun 2010 17:41:52 -0000 1.89
47 +++ xmltest.cpp 19 Jul 2010 21:24:16 -0000
48 @@ -1340,6 +1340,16 @@
52 + #ifdef TIXML_USE_STL
55 + xml.Parse("<foo>foo&#xa+bar</foo>");
58 + XmlTest( "Entity escaping", "<foo>foo&#xa+bar</foo>", str.c_str() );