Hi,
in libUFO, we are using the following patch to fix the wrong
interpretation of <?xml-* tags:
--- tinyxml/tinyxmlparser.cpp 2005-07-06
13:42:10.000000000 +0200
+++ tinyxmlparser.cpp 2005-07-06 13:43:06.000000000
+0200
@@ -818,10 +818,18 @@ TiXmlNode*
TiXmlNode::Identify( const ch
//
const char* xmlHeader = { "<?xml" };
+ const char* xmlUnknown = { "<?xml-" };
const char* commentHeader = { "<!--" };
const char* dtdHeader = { "<!" };
- if ( StringEqual( p, xmlHeader, true, encoding ) )
+ if ( StringEqual( p, xmlUnknown, true, encoding ) )
+ {
+ #ifdef DEBUG_PARSER
+ TIXML_LOG( "XML parsing Unknown\n" );
+ #endif
+ returnNode = new TiXmlUnknown();
+ }
+ else if ( StringEqual( p, xmlHeader, true, encoding ) )
{
#ifdef DEBUG_PARSER
TIXML_LOG( "XML parsing Declaration\n" );
Logged In: YES
user_id=732331
Originator: YES
Any chance that this patch is applied to the TinXML sources?
It is just a few lines long and gives the chance to read XML files with processing instructions (and a huge part of XML files have processing instructions, e.g. all Mozilla XUL files).
Thanks