diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-03-28 10:54:31 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-03-28 10:54:31 +0200 |
commit | 3a1b35c227d8b51d1bb488db511f82c666a38ea0 (patch) | |
tree | e14db1288422dcf744fb714c1c34df425f8d55dc /cutl/xml/parser.ixx | |
parent | 1d3d9dfb7b11da8e398f6f9c638291a0539f7bf0 (diff) |
Add direct access to attribute map in XML parserxml
Diffstat (limited to 'cutl/xml/parser.ixx')
-rw-r--r-- | cutl/xml/parser.ixx | 12 |
1 files changed, 12 insertions, 0 deletions
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) { |