Find a node in the tree with rood NODE whose name matches ELEMENT-TYPE and each attribute specified in ATTR-VAL-PAIRS matches. If ALL is true, then a list of all matching nodes are returned. Otherwise, the first match (in depth-first order) is returned.