getByName function

Get an element from a list by name. Never return more than 1 element.