From e8e3ce68f3ea3ccbfaaa9a189b46676b91261a65 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 9 Aug 2015 15:04:40 +0200 Subject: Add support for DOCTYPE declaration --- xml/serializer.cxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'xml/serializer.cxx') diff --git a/xml/serializer.cxx b/xml/serializer.cxx index 4d1da5b..775105f 100644 --- a/xml/serializer.cxx +++ b/xml/serializer.cxx @@ -241,6 +241,21 @@ namespace xml handle_error (e); } + void serializer:: + doctype_decl (const string& re, + const string& pi, + const string& si, + const string& is) + { + if (genxStatus e = genxDoctypeDeclaration ( + s_, + reinterpret_cast (re.c_str ()), + (pi.empty () ? 0 : reinterpret_cast (pi.c_str ())), + (si.empty () ? 0 : reinterpret_cast (si.c_str ())), + (is.empty () ? 0 : reinterpret_cast (is.c_str ())))) + handle_error (e); + } + bool serializer:: lookup_namespace_prefix (const string& ns, string& p) { -- cgit v1.1