'Find elements and return tree'

def getTextElements(self, xml, path):

    textelements = []
    try:
        elements = xml.findall(path)
    except:
        return
    for element in elements:
        textelements.append(element.text)
    return textelements
