ElementTree and Unicode

Richard Brodie R.Brodie at rl.ac.uk
Wed Aug 2 10:57:40 EDT 2006


"Sébastien Boisgérault" <Sebastien.Boisgerault at gmail.com> wrote in message 
news:1154530195.741884.34350 at h48g2000cwc.googlegroups.com...

>>>> element = Element("string", value=u"\x00")

I'm not as familiar with elementtree.ElementTree as I perhaps
should be. However, you appear to be trying to insert a null
character into an XML document. Should you succeed in this
quest, the resulting document will be ill-formed, and any
conforming parser will choke on it. 





More information about the Python-list mailing list