diff --git a/gxml/XParser.vala b/gxml/XParser.vala index 71a42c4ed385ea75aec4f3a5d2f4b97edb26bef2..b053020fb6aef484dea275974474a8f9f4c36a62 100644 --- a/gxml/XParser.vala +++ b/gxml/XParser.vala @@ -682,7 +682,7 @@ public class GXml.XParser : Object, GXml.Parser { tw.flush (); } if (n is GXml.DomDocumentType) { - size += tw.write_document_type ((n as DomDocumentType).name, + size += tw.write_dtd ((n as DomDocumentType).name, (n as DomDocumentType).public_id, (n as DomDocumentType).system_id, null);