def findall(node, localname):
    """Find all elements under `node` with a matching localname.

    Args:
        node: An lxml etree Element object.
        localname: An XML localname for an element.

    Returns:
        An iterable collection of  lxml etree Element objects.
    """
    if localname == 'text()':
        return node.xpath(localname)
    xmltag = '{*}%s' % localname
    return node.findall(xmltag)
