writer.startElement('xsa')
writer.startElement('vendor')
writer.simpleElement('name', content='Centigrade systems')
writer.simpleElement('email', content='info@centigrade.bogus')
writer.endElement('vendor')
writer.startElement('product', attributes={'id': '100\xb0'})
writer.simpleElement('name', content='100\xb0 Server')
writer.xmlFragment(
    '<version>1.0</version><last-release>20030401</last-release>')
writer.simpleElement('changes')
writer.endElement('product')
writer.endElement('xsa')
What's the easiest non-memory intensive way to output XML from Python?