summaryrefslogtreecommitdiff
path: root/src/plugins/xml/XmlOutput.cpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-18 14:17:18 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-18 14:17:18 +0100
commitb74a054bd7e7538594824445a0bc666ebb337689 (patch)
tree12de69267471c6f6b42e05a94a60128d41895c1d /src/plugins/xml/XmlOutput.cpp
parent64705a0c297121c6011e91c3b40d66fbcc2c160f (diff)
added support for primitive subtree fields in XMLOutput.
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);