From 9705f1a5e858108d21a0128556f42b25d16833cd Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 28 Oct 2004 09:07:41 +0000 Subject: Load /tmp/tmp.SgII7T/libxml2-2.6.15 into packages/libxml2/branches/upstream/current. --- SAX2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'SAX2.c') diff --git a/SAX2.c b/SAX2.c index fc0a8bf..cda9ac5 100644 --- a/SAX2.c +++ b/SAX2.c @@ -1824,6 +1824,7 @@ xmlSAX2AttributeNs(xmlParserCtxtPtr ctxt, valueend - value); tmp = ret->children; while (tmp != NULL) { + tmp->doc = ret->doc; tmp->parent = (xmlNodePtr) ret; if (tmp->next == NULL) ret->last = tmp; @@ -2363,7 +2364,7 @@ xmlSAX2ProcessingInstruction(void *ctx, const xmlChar *target, "SAX.xmlSAX2ProcessingInstruction(%s, %s)\n", target, data); #endif - ret = xmlNewPI(target, data); + ret = xmlNewDocPI(ctxt->myDoc, target, data); if (ret == NULL) return; parent = ctxt->node; @@ -2634,7 +2635,7 @@ xmlSAX2InitHtmlDefaultSAXHandler(xmlSAXHandler *hdlr) hdlr->characters = xmlSAX2Characters; hdlr->cdataBlock = xmlSAX2CDataBlock; hdlr->ignorableWhitespace = xmlSAX2IgnorableWhitespace; - hdlr->processingInstruction = NULL; + hdlr->processingInstruction = xmlSAX2ProcessingInstruction; hdlr->comment = xmlSAX2Comment; hdlr->warning = xmlParserWarning; hdlr->error = xmlParserError; -- cgit v1.2.3