1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-30 22:43:14 +03:00

- tree.c: fixed xmlGetNsProp() to close bug #55683

Note this requires libxslt to use it's own function instead.
Daniel
This commit is contained in:
Daniel Veillard
2001-06-07 19:35:47 +00:00
parent f0c5376a03
commit e8fc08e45d
2 changed files with 7 additions and 6 deletions

8
tree.c
View File

@ -4375,14 +4375,10 @@ xmlGetNsProp(xmlNodePtr node, const xmlChar *name, const xmlChar *namespace) {
* One need to have
* - same attribute names
* - and the attribute carrying that namespace
* or
* no namespace on the attribute and the element carrying it
*/
if ((xmlStrEqual(prop->name, name)) &&
(((prop->ns == NULL) && (node->ns != NULL) &&
(xmlStrEqual(node->ns->href, namespace))) ||
((prop->ns != NULL) &&
(xmlStrEqual(prop->ns->href, namespace))))) {
((prop->ns != NULL) &&
(xmlStrEqual(prop->ns->href, namespace)))) {
xmlChar *ret;
ret = xmlNodeListGetString(node->doc, prop->children, 1);