closedKeyCallback on XMLParser (as asked by Kenny)
svn-id: r32909
This commit is contained in:
parent
96f2d9ca18
commit
40bf717d3b
2 changed files with 19 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue