Diff for /XML/SAX.c between versions 1.59 and 1.60

version 1.59, 2000/05/02 17:02:09 version 1.60, 2000/05/06 08:08:34
Line 24 Line 24
 #include <libxml/debugXML.h>  #include <libxml/debugXML.h>
 #include <libxml/xmlIO.h>  #include <libxml/xmlIO.h>
 #include <libxml/SAX.h>  #include <libxml/SAX.h>
   #include <libxml/uri.h>
   
 /* #define DEBUG_SAX */  /* #define DEBUG_SAX */
 /* #define DEBUG_SAX_TREE */  /* #define DEBUG_SAX_TREE */
Line 651  attribute(void *ctx, const xmlChar *full Line 652  attribute(void *ctx, const xmlChar *full
     if ((ns == NULL) &&      if ((ns == NULL) &&
         (name[0] == 'x') && (name[1] == 'm') && (name[2] == 'l') &&          (name[0] == 'x') && (name[1] == 'm') && (name[2] == 'l') &&
         (name[3] == 'n') && (name[4] == 's') && (name[5] == 0)) {          (name[3] == 'n') && (name[4] == 's') && (name[5] == 0)) {
           xmlURIPtr uri;
   
           uri = xmlParseURI((const char *)value);
           if (uri == NULL) {
               if ((ctxt->sax != NULL) && (ctxt->sax->warning != NULL))
                   ctxt->sax->warning(ctxt->userData, 
                        "nmlns: %s not a valid URI\n", value);
           } else {
               if ((uri->scheme == NULL) || (uri->scheme)) {
                   if ((ctxt->sax != NULL) && (ctxt->sax->warning != NULL))
                       ctxt->sax->warning(ctxt->userData, 
                            "nmlns: URI %s is not absolute\n", value);
               }
               xmlFreeURI(uri);
           }
   
         /* a default namespace definition */          /* a default namespace definition */
         xmlNewNs(ctxt->node, value, NULL);          xmlNewNs(ctxt->node, value, NULL);
         if (name != NULL)           if (name != NULL) 

Removed from v.1.59  
changed lines
  Added in v.1.60


Webmaster