Using SAX for Proper XML Output
In his latest Python and XML column, Uche Ogbuji explains how to use SAX to generate proper XML output from Python programs.
http://www.stargeek.com/item/8084.html