Bug #1668: Fix xml parser for empty xml elements

This commit is contained in:
Carlos Martín authored and Tino Vazquez committed 2012-12-21 11:13:59 +01:00
1 parent 645655f088
commit 66182bb23d
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))
{