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 a11dca5 commit 50a291aCopy full SHA for 50a291a
src/utils/ConfigurationManager.cpp
@@ -78,8 +78,10 @@ void ConfigurationItem::ToXML(XMLElement* elem) {
78
child->ToXML(element);
79
}
80
81
- XMLText* newText = elem->GetDocument()->NewText(value.c_str());
82
- element->InsertEndChild(newText);
+ if (children.empty() || !value.empty()) {
+ XMLText* newText = elem->GetDocument()->NewText(value.c_str());
83
+ element->InsertEndChild(newText);
84
+ }
85
86
87
int ConfigurationItem::EnumerateProperties(std::vector<ConfigurationItem*>& outList) {
0 commit comments