Skip to content

Commit 0c8a5b5

Browse files
committed
Merge branch 'master' of github.com:BehaviorTree/BehaviorTree.CPP
2 parents d28e5be + 73b6547 commit 0c8a5b5

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)