Bug #1668: Fix xml parser for empty xml elements

This commit is contained in:
Carlos Martín committed 2012-11-29 11:24:56 +01:00
1 parent bf5a3a76e4
commit 2ba0f8203c
1 file changed
+1 -1
+1 -1
View File
@@ -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))
{