[xml] only try to map an xmlNode to a class ame if the node has a namespace

This commit is contained in:
Benjamin Dauvergne 2011-10-10 16:17:28 +02:00
parent f638f379e7
commit 94136d639b
1 changed files with 1 additions and 1 deletions

View File

@ -2239,7 +2239,7 @@ _lasso_node_new_from_xmlNode(xmlNode *xmlnode)
fromXsi = TRUE;
}
if (typename == NULL) {
if (typename == NULL && xmlnode->ns && xmlnode->ns->href) {
typename = _type_name_from_href_and_nodename ((char*)xmlnode->ns->href, (char*)xmlnode->name);
}