'Selects component elements in a resource element'

@classmethod
def components(cls, element, names=None):

    RESOURCE = cls.TAG.resource
    NAME = cls.ATTRIBUTE.name
    for child in element.iterchildren():
        if (child.tag == RESOURCE):
            if ((names is None) or (child.get(NAME, None) in names)):
                (yield child)
    return
