Diff for /XML/tree.c between versions 1.78 and 1.79

version 1.78, 1999/12/21 13:33:05 version 1.79, 1999/12/21 16:19:16
Line 2990  xmlGetNsProp(xmlNodePtr node, const xmlC Line 2990  xmlGetNsProp(xmlNodePtr node, const xmlC
     if (namespace == NULL)      if (namespace == NULL)
         return(xmlGetProp(node, name));          return(xmlGetProp(node, name));
     while (prop != NULL) {      while (prop != NULL) {
           /*
            * 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 ((!xmlStrcmp(prop->name, name)) &&          if ((!xmlStrcmp(prop->name, name)) &&
             (prop->ns != NULL) && (!xmlStrcmp(prop->ns->href, namespace)))  {              (((prop->ns == NULL) && (node->ns != NULL) &&
                 (!xmlStrcmp(node->ns->href, namespace))) ||
                (prop->ns != NULL) && (!xmlStrcmp(prop->ns->href, namespace))))  {
             xmlChar *ret;              xmlChar *ret;
   
             ret = xmlNodeListGetString(node->doc, prop->val, 1);              ret = xmlNodeListGetString(node->doc, prop->val, 1);

Removed from v.1.78  
changed lines
  Added in v.1.79


Webmaster