Diff for /XML/debugXML.c between versions 1.20 and 1.21

version 1.20, 2000/02/19 18:59:45 version 1.21, 2000/02/21 09:33:35
Line 471  void xmlDebugDumpOneNode(FILE *output, x Line 471  void xmlDebugDumpOneNode(FILE *output, x
         shift[2 * i] = shift[2 * i + 1] = ' ';          shift[2 * i] = shift[2 * i + 1] = ' ';
     shift[2 * i] = shift[2 * i + 1] = 0;      shift[2 * i] = shift[2 * i + 1] = 0;
   
     fprintf(output, shift);  
     switch (node->type) {      switch (node->type) {
         case XML_ELEMENT_NODE:          case XML_ELEMENT_NODE:
               fprintf(output, shift);
             fprintf(output, "ELEMENT ");              fprintf(output, "ELEMENT ");
             if (node->ns != NULL)              if (node->ns != NULL)
                 fprintf(output, "%s:%s\n", node->ns->prefix, node->name);                  fprintf(output, "%s:%s\n", node->ns->prefix, node->name);
Line 481  void xmlDebugDumpOneNode(FILE *output, x Line 481  void xmlDebugDumpOneNode(FILE *output, x
                 fprintf(output, "%s\n", node->name);                  fprintf(output, "%s\n", node->name);
             break;              break;
         case XML_ATTRIBUTE_NODE:          case XML_ATTRIBUTE_NODE:
               fprintf(output, shift);
             fprintf(output, "Error, ATTRIBUTE found here\n");              fprintf(output, "Error, ATTRIBUTE found here\n");
             break;              break;
         case XML_TEXT_NODE:          case XML_TEXT_NODE:
               fprintf(output, shift);
             fprintf(output, "TEXT\n");              fprintf(output, "TEXT\n");
             break;              break;
         case XML_CDATA_SECTION_NODE:          case XML_CDATA_SECTION_NODE:
               fprintf(output, shift);
             fprintf(output, "CDATA_SECTION\n");              fprintf(output, "CDATA_SECTION\n");
             break;              break;
         case XML_ENTITY_REF_NODE:          case XML_ENTITY_REF_NODE:
               fprintf(output, shift);
             fprintf(output, "ENTITY_REF(%s)\n", node->name);              fprintf(output, "ENTITY_REF(%s)\n", node->name);
             break;              break;
         case XML_ENTITY_NODE:          case XML_ENTITY_NODE:
               fprintf(output, shift);
             fprintf(output, "ENTITY\n");              fprintf(output, "ENTITY\n");
             break;              break;
         case XML_PI_NODE:          case XML_PI_NODE:
               fprintf(output, shift);
             fprintf(output, "PI %s\n", node->name);              fprintf(output, "PI %s\n", node->name);
             break;              break;
         case XML_COMMENT_NODE:          case XML_COMMENT_NODE:
               fprintf(output, shift);
             fprintf(output, "COMMENT\n");              fprintf(output, "COMMENT\n");
             break;              break;
         case XML_DOCUMENT_NODE:          case XML_DOCUMENT_NODE:
         case XML_HTML_DOCUMENT_NODE:          case XML_HTML_DOCUMENT_NODE:
               fprintf(output, shift);
             fprintf(output, "Error, DOCUMENT found here\n");              fprintf(output, "Error, DOCUMENT found here\n");
             break;              break;
         case XML_DOCUMENT_TYPE_NODE:          case XML_DOCUMENT_TYPE_NODE:
               fprintf(output, shift);
             fprintf(output, "DOCUMENT_TYPE\n");              fprintf(output, "DOCUMENT_TYPE\n");
             break;              break;
         case XML_DOCUMENT_FRAG_NODE:          case XML_DOCUMENT_FRAG_NODE:
               fprintf(output, shift);
             fprintf(output, "DOCUMENT_FRAG\n");              fprintf(output, "DOCUMENT_FRAG\n");
             break;              break;
         case XML_NOTATION_NODE:          case XML_NOTATION_NODE:
             fprintf(output, "NOTATION\n");              fprintf(output, "NOTATION\n");
             break;              break;
         case XML_DTD_NODE:          case XML_DTD_NODE:
             xmlDebugDumpDtd(output, (xmlDtdPtr) node, depth - 1);              xmlDebugDumpDtd(output, (xmlDtdPtr) node, depth);
             return;              return;
         case XML_ELEMENT_DECL:          case XML_ELEMENT_DECL:
             xmlDebugDumpElemDecl(output, (xmlElementPtr) node, depth - 2);              xmlDebugDumpElemDecl(output, (xmlElementPtr) node, depth);
             return;              return;
         case XML_ATTRIBUTE_DECL:          case XML_ATTRIBUTE_DECL:
             xmlDebugDumpAttrDecl(output, (xmlAttributePtr) node, depth - 2);              xmlDebugDumpAttrDecl(output, (xmlAttributePtr) node, depth);
             return;              return;
         case XML_ENTITY_DECL:          case XML_ENTITY_DECL:
             xmlDebugDumpEntityDecl(output, (xmlEntityPtr) node, depth - 2);              xmlDebugDumpEntityDecl(output, (xmlEntityPtr) node, depth);
             return;              return;
         default:          default:
               fprintf(output, shift);
             fprintf(output, "NODE_%d\n", node->type);              fprintf(output, "NODE_%d\n", node->type);
     }      }
     if (node->doc == NULL) {      if (node->doc == NULL) {

Removed from v.1.20  
changed lines
  Added in v.1.21


Webmaster