def METHOD_NAME(points):
    """ Returns the text element of the license XML.
    """
    licenseTextElement = ET.Element("text")
    elements = []
    elements.append(licenseTextElement)
    for pp,point in previous_and_current(points):
        if point.get('isStart'):
            elements.append(ET.Element("list"))
        elif point.get('isStart') is False:
            n = len(elements)
            if elements[n-2].findall('item'):
                elements[n-2].findall('item')[-1].append(elements[n-1])
            else:
                 elements[n-2].append(elements[n-1])
            elements.pop()
        else:
            if pp:
                if point.get('tagType') == "p" and pp.get('tagType') == "item":
                    p = ET.Element("p")
                    p.text = point.get('data')
                    elements[-1].findall('item')[-1].append(p)
                    continue
            if point.get('tagType') == "p":
                p = ET.Element("p")
                p.text = point.get('data')
                elements[-1].append(p)
            elif point.get('tagType') == "item":
                item = ET.Element("item")
                ET.SubElement(item, "p").text = wrapBullets(point.get('data'), item)
                elements[-1].append(item)
    return elements[0]