I have this code with ElementTree that works well with Python 2.7. I needed to get all the nodes with the name \"A\" under \"X/Y\" node.
from xml.etree.Elem
Not sure if this is what you are looking for, as iter() appears to be around in 2.6, but there's getiterator()
iter()
getiterator()
http://docs.python.org/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.getiterator