Skip to content

Commit 3dea39c

Browse files
committed
Proper fix for missing attribute
1 parent 09aa997 commit 3dea39c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xml_parsing.cpp

Lines changed: 2 additions & 1 deletion
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)