Diff for /XML/valid.c between versions 1.49 and 1.50

version 1.49, 2000/02/14 18:24:30 version 1.50, 2000/02/15 14:56:32
Line 416  xmlAddElementDecl(xmlValidCtxtPtr ctxt, Line 416  xmlAddElementDecl(xmlValidCtxtPtr ctxt,
     ret->attributes = xmlScanAttributeDecl(dtd, name);      ret->attributes = xmlScanAttributeDecl(dtd, name);
     table->nb_elements++;      table->nb_elements++;
   
       /*
        * Link it to the Dtd
        */
       ret->parent = dtd;
       ret->doc = dtd->doc;
       if (dtd->last == NULL) {
           dtd->children = dtd->last = (xmlNodePtr) ret;
       } else {
           dtd->last->next = (xmlNodePtr) ret;
           ret->prev = dtd->last;
           dtd->last = (xmlNodePtr) ret;
       }
     return(ret);      return(ret);
 }  }
   
Line 871  xmlAddAttributeDecl(xmlValidCtxtPtr ctxt Line 883  xmlAddAttributeDecl(xmlValidCtxtPtr ctxt
         return(NULL);          return(NULL);
     }      }
     memset(ret, 0, sizeof(xmlAttribute));      memset(ret, 0, sizeof(xmlAttribute));
     /* !!! ret->type = XML_ATTRIBUTE_DECL; */      ret->type = XML_ATTRIBUTE_DECL;
     table->table[table->nb_attributes] = ret;      table->table[table->nb_attributes] = ret;
   
     /*      /*
Line 897  xmlAddAttributeDecl(xmlValidCtxtPtr ctxt Line 909  xmlAddAttributeDecl(xmlValidCtxtPtr ctxt
     }      }
     table->nb_attributes++;      table->nb_attributes++;
   
       /*
        * Link it to the Dtd
        */
       ret->parent = dtd;
       ret->doc = dtd->doc;
       if (dtd->last == NULL) {
           dtd->children = dtd->last = (xmlNodePtr) ret;
       } else {
           dtd->last->next = (xmlNodePtr) ret;
           ret->prev = dtd->last;
           dtd->last = (xmlNodePtr) ret;
       }
     return(ret);      return(ret);
 }  }
   
Line 2517  xmlValidateOneAttribute(xmlValidCtxtPtr Line 2541  xmlValidateOneAttribute(xmlValidCtxtPtr
         }          }
         if (tree == NULL) {          if (tree == NULL) {
             VERROR(ctxt->userData,               VERROR(ctxt->userData, 
    "Value \"%s\" for attribute %s on %s is among the enumerated notations\n",  "Value \"%s\" for attribute %s on %s is not among the enumerated notations\n",
                    value, attr->name, elem->name);                     value, attr->name, elem->name);
             ret = 0;              ret = 0;
         }          }

Removed from v.1.49  
changed lines
  Added in v.1.50


Webmaster