summaryrefslogtreecommitdiff
path: root/src/plugins/xml/XmlOutput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/xml/XmlOutput.cpp')
-rw-r--r--src/plugins/xml/XmlOutput.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/xml/XmlOutput.cpp b/src/plugins/xml/XmlOutput.cpp
index 37d95ec..85885bc 100644
--- a/src/plugins/xml/XmlOutput.cpp
+++ b/src/plugins/xml/XmlOutput.cpp
@@ -137,8 +137,7 @@ void XmlTransformer::transformChildren(DocumentEntity *parentEntity,
Rooted<FieldDescriptor> fieldDesc = fieldDescs[f];
// if this is not the default field create an intermediate node for it.
Rooted<Element> par = parent;
- if (fieldDesc->getFieldType() != FieldDescriptor::FieldType::TREE &&
- !fieldDesc->isPrimitive()) {
+ if (fieldDesc->getFieldType() != FieldDescriptor::FieldType::TREE) {
par =
Rooted<Element>{new Element(mgr, parent, fieldDesc->getName())};
parent->addChild(par);