修改tinyxmlparser.cpp文件中的部分代码如下:
TiXmlBase::Entity TiXmlBase::entity[ NUM_ENTITY ] =
{
{ "&", 5, "&" },
{ "<", 4, "<" },
{ ">", 4, ">" },
{ """, 6, "\"" },
{ "'", 6, "\'" },
{ "&\#955;", 6, "λ" },
{ "&\#934;", 6, "Φ" },
{ "&\#951;", 6, "η" }
};
const char* TiXmlBase::GetEntity( const char* p, char* value, int* length, TiXmlEncoding encoding )
{
// Presume an entity, and pull it out.
TIXML_STRING ent;
int i;
*length = 0;
// Now try to match it.
for( i=0; i<NUM_ENTITY; ++i )
{
if ( strncmp( entity[i].str, p, entity[i].strLength ) == 0 )
{
assert( strlen( entity[