Diff for /XML/SAX.c between versions 1.63 and 1.64

version 1.63, 2000/05/14 15:32:31 version 1.64, 2000/06/26 07:32:33
Line 875  startElement(void *ctx, const xmlChar *f Line 875  startElement(void *ctx, const xmlChar *f
     }      }
   
     /*      /*
      * If it's the Document root, finish the Dtd validation and  
      * check the document root element for validity  
      */  
     if ((ctxt->validate) && (ctxt->vctxt.finishDtd == 0)) {  
         ctxt->valid &= xmlValidateDtdFinal(&ctxt->vctxt, ctxt->myDoc);  
         ctxt->valid &= xmlValidateRoot(&ctxt->vctxt, ctxt->myDoc);  
         ctxt->vctxt.finishDtd = 1;  
     }  
     /*  
      * process all the attributes whose name start with "xml"       * process all the attributes whose name start with "xml"
      */       */
     if (atts != NULL) {      if (atts != NULL) {
Line 900  startElement(void *ctx, const xmlChar *f Line 891  startElement(void *ctx, const xmlChar *f
     }      }
   
     /*      /*
        * Search the namespace, note that since the attributes have been
        * processed, the local namespaces are available.
        */
       ns = xmlSearchNs(ctxt->myDoc, ret, prefix);
       if ((ns == NULL) && (parent != NULL))
           ns = xmlSearchNs(ctxt->myDoc, parent, prefix);
       xmlSetNs(ret, ns);
   
       /*
      * process all the other attributes       * process all the other attributes
      */       */
     if (atts != NULL) {      if (atts != NULL) {
Line 919  startElement(void *ctx, const xmlChar *f Line 919  startElement(void *ctx, const xmlChar *f
     }      }
   
     /*      /*
      * Search the namespace, note that since the attributes have been       * If it's the Document root, finish the Dtd validation and
      * processed, the local namespaces are available.       * check the document root element for validity
      */       */
     ns = xmlSearchNs(ctxt->myDoc, ret, prefix);      if ((ctxt->validate) && (ctxt->vctxt.finishDtd == 0)) {
     if ((ns == NULL) && (parent != NULL))          ctxt->valid &= xmlValidateDtdFinal(&ctxt->vctxt, ctxt->myDoc);
         ns = xmlSearchNs(ctxt->myDoc, parent, prefix);          ctxt->valid &= xmlValidateRoot(&ctxt->vctxt, ctxt->myDoc);
     xmlSetNs(ret, ns);          ctxt->vctxt.finishDtd = 1;
       }
   
     if (prefix != NULL)      if (prefix != NULL)
         xmlFree(prefix);          xmlFree(prefix);

Removed from v.1.63  
changed lines
  Added in v.1.64


Webmaster