def parseelement(elem):
    '''
    Convert the content of an element into more ElementTree structures.
    We do this because sometimes we want to set xml as the content of an element.
    '''
    xml = '<%(tag)s>%(content)s</%(tag)s>' % {'tag' : elem.tag, 'content' : elem.text}
    et = etree.fromstring(xml)
    replaceelement(elem, et)