#diff --git a/cegui/src/XMLParserModules/TinyXML/XMLParser.cpp b/cegui/src/XMLParserModules/TinyXML/XMLParser.cpp
--- a/cegui/src/XMLParserModules/TinyXML/XMLParser.cpp
+++ b/cegui/src/XMLParserModules/TinyXML/XMLParser.cpp
@@ -130,7 +130,7 @@
                 processElement(childNode->ToElement());
                 break;
             case TiXmlNode::CEGUI_TINYXML_TEXT:
-                if (childNode->ToText()->Value() != '\0')
+                if (childNode->ToText()->Value() != 0)
                     d_handler->text((encoded_char*)childNode->ToText()->Value());
                 break;
 
