libzzub 0.2
template<typename Predicate >
xml_attribute pugi::xml_node::find_attribute ( Predicate  pred) const [inline]

Find attribute using predicate

Parameters:
pred- predicate, that takes xml_attribute and returns bool
Returns:
first attribute for which predicate returned true, or empty attribute