aboutsummaryrefslogtreecommitdiff
path: root/xml/serializer.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-09 15:04:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-09 15:04:40 +0200
commite8e3ce68f3ea3ccbfaaa9a189b46676b91261a65 (patch)
tree1cc46a3b55cc8bc888e5e570be1d233576ea7fe9 /xml/serializer.cxx
parent5dcf6aec988a09c8c0490ff2af2070acfb30b659 (diff)
Add support for DOCTYPE declarationxhtml
Diffstat (limited to 'xml/serializer.cxx')
-rw-r--r--xml/serializer.cxx15
1 files changed, 15 insertions, 0 deletions
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<constUtf8> (re.c_str ()),
+ (pi.empty () ? 0 : reinterpret_cast<constUtf8> (pi.c_str ())),
+ (si.empty () ? 0 : reinterpret_cast<constUtf8> (si.c_str ())),
+ (is.empty () ? 0 : reinterpret_cast<constUtf8> (is.c_str ()))))
+ handle_error (e);
+ }
+
bool serializer::
lookup_namespace_prefix (const string& ns, string& p)
{