Re: elementtree.SimpleXMLWriter and xmlcharrefreplace

2007-01-05 Thread [EMAIL PROTECTED]
My current version of SimpeXMLWriter is: $Id: SimpleXMLWriter.py 1862 2004-06-18 07:31:02Z Fredrik $ I'm testing this on in python2.3.5 and python2.4.3. [EMAIL PROTECTED] wrote: > I'll try to explain my problem with code. > The problem is the output > > msg = u"Södertälje & Borås" # latin1 unicode

elementtree.SimpleXMLWriter and xmlcharrefreplace

2007-01-05 Thread [EMAIL PROTECTED]
I'll try to explain my problem with code. The problem is the output msg = u"Södertälje & Borås" # latin1 unicode string with a & from elementtree.SimpleXMLWriter import XMLWriter from cStringIO import StringIO out = StringIO() w = XMLWriter(out) body = w.start("body") w.element("text", msg) w.clo