def generateElementsNamed(list, name):
    for n in list:
        if IElement.providedBy(n) and n.name == name:
            yield n
Filters Element items in a list with matching name, regardless of URI.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/words/xish/domish.py/generateElementsNamed