mirror of https://github.com/AxioDL/tinyxml2.git
another round on the element parsing. Test case passes.
This commit is contained in:
parent
7468f11413
commit
784607f31d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -588,7 +588,8 @@ enum {
|
|||
ERROR_PARSING_DECLARATION,
|
||||
ERROR_PARSING_UNKNOWN,
|
||||
ERROR_EMPTY_DOCUMENT,
|
||||
ERROR_MISMATCHED_ELEMENT
|
||||
ERROR_MISMATCHED_ELEMENT,
|
||||
ERROR_PARSING
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue