#!/usr/local/bin/python2 import xml.etree.ElementTree as etree r = etree.XML('b') print etree.Element('a').tail