// file : cutl/xml/parser.txx // copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file #include namespace cutl { namespace xml { template T parser:: attribute (const qname_type& qn, const T& dv) const { attribute_map::const_iterator i (attr_map_.find (qn)); if (i != attr_map_.end ()) { if (!i->second.handled) { i->second.handled = true; attr_unhandled_--; } return value_traits::parse (i->second.value, *this); } else return dv; } } }