From 66182bb23d8495929ecfd8c443a3d3fa2bdce4e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Thu, 29 Nov 2012 11:24:56 +0100 Subject: [PATCH] Bug #1668: Fix xml parser for empty xml elements --- src/template/Template.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/template/Template.cc b/src/template/Template.cc index e461a4afbe..4905639714 100644 --- a/src/template/Template.cc +++ b/src/template/Template.cc @@ -538,7 +538,7 @@ Attribute * Template::single_xml_att(const xmlNode * node) Attribute * attr = 0; xmlNode * child = node->children; - if( child->next == 0 && child != 0 && + if( child != 0 && child->next == 0 && (child->type == XML_TEXT_NODE || child->type == XML_CDATA_SECTION_NODE)) {