closedKeyCallback on XMLParser (as asked by Kenny)

svn-id: r32909
This commit is contained in:
Vicent Marti 2008-07-04 23:51:23 +00:00
parent 96f2d9ca18
commit 40bf717d3b
2 changed files with 19 additions and 0 deletions

View file

@ -194,6 +194,11 @@ bool XMLParser::parse() {
case kParserNeedPropertyName:
if (activeClosure) {
if (!closedKeyCallback(_activeKey.top()->name)) {
parserError("Missing data when closing key '%s'.", _activeKey.top()->name.c_str());
break;
}
activeClosure = false;
delete _activeKey.pop();