From b74a054bd7e7538594824445a0bc666ebb337689 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Wed, 18 Feb 2015 14:17:18 +0100 Subject: added support for primitive subtree fields in XMLOutput. --- src/plugins/xml/XmlOutput.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/plugins/xml/XmlOutput.cpp') 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 fieldDesc = fieldDescs[f]; // if this is not the default field create an intermediate node for it. Rooted par = parent; - if (fieldDesc->getFieldType() != FieldDescriptor::FieldType::TREE && - !fieldDesc->isPrimitive()) { + if (fieldDesc->getFieldType() != FieldDescriptor::FieldType::TREE) { par = Rooted{new Element(mgr, parent, fieldDesc->getName())}; parent->addChild(par); -- cgit v1.2.3