static bool stripTextDecl( QString& str ) { QString textDeclStart( "" )); QString strTmp = str.replace( textDecl, "" ); if ( strTmp.length() != str.length() ) return FALSE; // external entity has wrong TextDecl str = strTmp; } return TRUE; }