We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bc72fd commit 15d97bdCopy full SHA for 15d97bd
src/xml_parsing.cpp
@@ -541,6 +541,15 @@ void VerifyXML(const std::string& xml_text,
541
ThrowError(line_number,
542
std::string("The node <") + name + "> must have 1 or more children");
543
}
544
+ if (name == "ReactiveSequence")
545
+ {
546
+ const std::string child_name = node->FirstChildElement()->Name();
547
+ if (child_name != "Condition" && child_name != "SubTree")
548
549
+ ThrowError(line_number,
550
+ std::string("The first child of a ReactiveSequence must be of Condition type, not " + child_name));
551
+ }
552
553
554
555
//recursion
0 commit comments