summaryrefslogtreecommitdiff
path: root/xmlsave.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmlsave.c')
-rw-r--r--xmlsave.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmlsave.c b/xmlsave.c
index 7698991..1e8e0d7 100644
--- a/xmlsave.c
+++ b/xmlsave.c
@@ -523,6 +523,10 @@ xmlDtdDumpOutput(xmlSaveCtxtPtr ctxt, xmlDtdPtr dtd) {
return;
}
xmlOutputBufferWrite(buf, 3, " [\n");
+ /* Dump the notations first they are not in the DTD children list */
+ if (dtd->notations != NULL) {
+ xmlDumpNotationTable(buf->buffer, (xmlNotationTablePtr) dtd->notations);
+ }
format = ctxt->format;
level = ctxt->level;
doc = ctxt->doc;