I’ve been playing with Fredrik Lundh’s ElementTree as an intuitive/pythonic way of processing XML. (While I like Aaron Swarz’s XML Tramp, it is presently unsupported; ElementTree is fast and has XPath support.)
Parsing an XML document:
from elementtree.ElementTree import parse
tree = parse(filename …
There are comments.