Robert Dailey wrote: > Hmm, ElementTree.tostring() also adds a space between the last character > of the element name and the />. Not sure why it is doing this.
ET is commonly used to generate (X)HTML fragments, and that space
provides partial HTML compatibility.
since the default serializer never generates CDATA sections, it should
be safe to simply do a text.replace(" />", "/>") on the resulting string.
</F>
--
http://mail.python.org/mailman/listinfo/python-list
