diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-03-27 08:00:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-03-27 08:00:25 +0200 |
commit | 1d3d9dfb7b11da8e398f6f9c638291a0539f7bf0 (patch) | |
tree | 66d8a5382122e8369016c6a4f0d091629e5e37b8 /cutl/xml/parser.ixx | |
parent | 707387b10340c7b95db35c8b791e57a2d02ccbaf (diff) |
Add attribute_present() function to XML parser
Diffstat (limited to 'cutl/xml/parser.ixx')
-rw-r--r-- | cutl/xml/parser.ixx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cutl/xml/parser.ixx b/cutl/xml/parser.ixx index fa5a7b6..2bedae4 100644 --- a/cutl/xml/parser.ixx +++ b/cutl/xml/parser.ixx @@ -41,6 +41,12 @@ namespace cutl return value_traits<T>::parse (attribute (qn), *this); } + inline bool parser:: + attribute_present (const std::string& n) const + { + return attribute_present (qname_type (n)); + } + inline void parser:: next_expect (event_type e, const qname_type& qn) { |