[xml] only try to map an xmlNode to a class ame if the node has a namespace
This commit is contained in:
parent
f638f379e7
commit
94136d639b
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue