#!/usr/local/bin/python2 import xml.etree.ElementTree as ET from cStringIO import StringIO ET.iterparse(StringIO(''))