In reply to a tweet by pfhawkins:

@pfhawkins If you're outputting some kind of XML, genshi is hard to beat.