From fec681be83c91268ee4db97f34ce4e47179316dd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 8 May 2014 17:50:12 -0700 Subject: Add helpers for serializing elements with simple content --- xml/serializer.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xml/serializer.cxx') diff --git a/xml/serializer.cxx b/xml/serializer.cxx index 8147f91..a6afcca 100644 --- a/xml/serializer.cxx +++ b/xml/serializer.cxx @@ -173,6 +173,13 @@ namespace xml } void serializer:: + element (const string& ns, const string& n, const string& v) + { + start_element (ns, n); + element (v); + } + + void serializer:: start_attribute (const string& ns, const string& name) { if (genxStatus e = genxStartAttributeLiteral ( -- cgit v1.1