version 1.44, 2000/02/14 08:24:33
|
version 1.45, 2000/02/14 18:24:30
|
Line 649 startElement(void *ctx, const xmlChar *f
|
Line 649 startElement(void *ctx, const xmlChar *f
|
#ifdef DEBUG_SAX_TREE |
#ifdef DEBUG_SAX_TREE |
fprintf(stderr, "Setting %s as root\n", name); |
fprintf(stderr, "Setting %s as root\n", name); |
#endif |
#endif |
ctxt->myDoc->children = ret; |
xmlAddChild((xmlNodePtr) ctxt->myDoc, (xmlNodePtr) ret); |
} else if (parent == NULL) { |
} else if (parent == NULL) { |
parent = ctxt->myDoc->children; |
parent = ctxt->myDoc->children; |
} |
} |
Line 893 processingInstruction(void *ctx, const x
|
Line 893 processingInstruction(void *ctx, const x
|
#ifdef DEBUG_SAX_TREE |
#ifdef DEBUG_SAX_TREE |
fprintf(stderr, "Setting PI %s as root\n", target); |
fprintf(stderr, "Setting PI %s as root\n", target); |
#endif |
#endif |
ctxt->myDoc->children = ret; |
xmlAddChild((xmlNodePtr) ctxt->myDoc, (xmlNodePtr) ret); |
} else if (parent == NULL) { |
} else if (parent == NULL) { |
parent = ctxt->myDoc->children; |
parent = ctxt->myDoc->children; |
} |
} |
Line 1072 comment(void *ctx, const xmlChar *value)
|
Line 1072 comment(void *ctx, const xmlChar *value)
|
#ifdef DEBUG_SAX_TREE |
#ifdef DEBUG_SAX_TREE |
fprintf(stderr, "Setting comment as root\n"); |
fprintf(stderr, "Setting comment as root\n"); |
#endif |
#endif |
ctxt->myDoc->children = ret; |
xmlAddChild((xmlNodePtr) ctxt->myDoc, (xmlNodePtr) ret); |
} else if (parent == NULL) { |
} else if (parent == NULL) { |
parent = ctxt->myDoc->children; |
parent = ctxt->myDoc->children; |
} |
} |