refactoring taxonomy nodes_from_xml_for to use tap