diff options
Diffstat (limited to 'xmlwriter.c')
-rw-r--r-- | xmlwriter.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xmlwriter.c b/xmlwriter.c index 5a7120d..2a267cc 100644 --- a/xmlwriter.c +++ b/xmlwriter.c @@ -304,6 +304,11 @@ xmlNewTextWriterDoc(xmlDocPtr * doc, int compression) "xmlNewTextWriterDoc : error at xmlCreatePushParserCtxt!\n"); return NULL; } + /* + * For some reason this seems to completely break if node names + * are interned. + */ + ctxt->dictNames = 0; ctxt->myDoc = xmlNewDoc(BAD_CAST XML_DEFAULT_VERSION); if (ctxt->myDoc == NULL) { @@ -364,6 +369,11 @@ xmlNewTextWriterTree(xmlDocPtr doc, xmlNodePtr node, int compression) "xmlNewTextWriterDoc : error at xmlCreatePushParserCtxt!\n"); return NULL; } + /* + * For some reason this seems to completely break if node names + * are interned. + */ + ctxt->dictNames = 0; ret = xmlNewTextWriterPushParser(ctxt, compression); if (ret == NULL) { |