diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-11 23:47:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-11 23:47:47 +0200 |
commit | 503cd7a8cbb54719db115391de17ec265ea2b543 (patch) | |
tree | 0db5c25a13b30d90c34c2efc2b8591896bbe197d /xml/serializer | |
parent | d49c8876bc97a900c61bb053ecec9374be448014 (diff) |
Add support for "checked" end_element(), end_attribute()
Diffstat (limited to 'xml/serializer')
-rw-r--r-- | xml/serializer | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/xml/serializer b/xml/serializer index eb592df..0624634 100644 --- a/xml/serializer +++ b/xml/serializer @@ -97,6 +97,19 @@ namespace xml void end_element (); + // "Checked" end element. That is, it checks that the element + // you think you are ending matches the current one. + // + void + end_element (const qname_type& qname); + + void + end_element (const std::string& name); + + void + end_element (const std::string& ns, const std::string& name); + + // Helpers for serializing elements with simple content. The first two // functions assume that start_element() has already been called. The // other two serialize the complete element, from start to end. @@ -147,6 +160,19 @@ namespace xml void end_attribute (); + // "Checked" end attribute. That is, it checks that the attribute + // you think you are ending matches the current one. + // + void + end_attribute (const qname_type& qname); + + void + end_attribute (const std::string& name); + + void + end_attribute (const std::string& ns, const std::string& name); + + void attribute (const qname_type& qname, const std::string& value); |