Support for find node by predicate, or by attribute name and value