another round on the element parsing. Test case passes.

This commit is contained in:
Lee Thomason (grinliz) 2012-02-24 16:23:40 -08:00
parent 7468f11413
commit 784607f31d
2 changed files with 5 additions and 2 deletions

View File

@ -629,6 +629,9 @@ char* XMLNode::ParseDeep( char* p, StrPair* parentEnd )
if ( !p ) {
DELETE_NODE( node );
node = 0;
if ( !document->Error() ) {
document->SetError( ERROR_PARSING, 0, 0 );
}
break;
}
@ -1073,7 +1076,6 @@ char* XMLElement::ParseDeep( char* p, StrPair* strPair )
return p;
p = XMLNode::ParseDeep( p, strPair );
// FIXME: proces end tage here??
return p;
}

View File

@ -588,7 +588,8 @@ enum {
ERROR_PARSING_DECLARATION,
ERROR_PARSING_UNKNOWN,
ERROR_EMPTY_DOCUMENT,
ERROR_MISMATCHED_ELEMENT
ERROR_MISMATCHED_ELEMENT,
ERROR_PARSING
};