From 3a1b35c227d8b51d1bb488db511f82c666a38ea0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 28 Mar 2013 10:54:31 +0200 Subject: Add direct access to attribute map in XML parser --- cutl/xml/parser.ixx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cutl/xml/parser.ixx') diff --git a/cutl/xml/parser.ixx b/cutl/xml/parser.ixx index 2bedae4..65834b6 100644 --- a/cutl/xml/parser.ixx +++ b/cutl/xml/parser.ixx @@ -47,6 +47,18 @@ namespace cutl return attribute_present (qname_type (n)); } + inline const parser::attribute_map_type& parser:: + attribute_map () const + { + if (const element_entry* e = get_element ()) + { + e->attr_unhandled_ = 0; // Assume all handled. + return e->attr_map_; + } + + return empty_attr_map_; + } + inline void parser:: next_expect (event_type e, const qname_type& qn) { -- cgit v1.1