> This would end up looking more like: > > writer = xml.sax.writer.XmlWriter(f) That's a SAX1 class, right? The SAX2 class is xml.sax.saxutils.XMLGenerator. Regards, Martin