We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57c5db5 commit b2fc82cCopy full SHA for b2fc82c
src/xml_parsing.cpp
@@ -548,8 +548,13 @@ void VerifyXML(const std::string& xml_text,
548
for(auto child = node->FirstChildElement(); child != nullptr;
549
child = child->NextSiblingElement())
550
{
551
- const std::string child_name = node->FirstChildElement()->Name();
+ const std::string child_name = child->Name();
552
const auto child_search = registered_nodes.find(child_name);
553
+ if(child_search == registered_nodes.end())
554
+ {
555
+ ThrowError(child->GetLineNum(),
556
+ std::string("Unknown node type: ") + child_name);
557
+ }
558
const auto child_type = child_search->second;
559
if(child_type == NodeType::CONTROL &&
560
((child_name == "ThreadedAction") ||
0 commit comments