Skip to content

Commit 73b6547

Browse files
Merge pull request #577 from OPerepadia/fix-missing-attribute
Proper fix for missing attribute
2 parents 2961ee8 + 3dea39c commit 73b6547

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xml_parsing.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,8 @@ std::string writeTreeNodesModelXML(const BehaviorTreeFactory& factory,
10081008
{
10091009
XMLDocument doc;
10101010

1011-
XMLElement* rootXML = doc.NewElement("root BTCPP_format=\"4\"");
1011+
XMLElement* rootXML = doc.NewElement("root");
1012+
rootXML->SetAttribute("BTCPP_format", "4");
10121013
doc.InsertFirstChild(rootXML);
10131014

10141015
XMLElement* model_root = doc.NewElement("TreeNodesModel");

0 commit comments

Comments
 (0)