[Python-ideas] XMLGenerator: <empty/> instead of <empty></empty>

Mathias Panzenböck grosser.meister.morti at gmx.net
Mon Oct 22 22:48:08 CEST 2007


Hi.

I modified xml.sax.saxutils.XMLGenerator, _xmlplus.sax.saxutils.XMLGenerator, and
_xmlplus.sax.saxutils.LexicalXMLGenerator so that they do no longer produce those
ugly close tags for empty elements, but use the short version. So instead of
<empty></empty> you get just <empty/>. :)

I used the version of saxutils.py that is shipped with python 2.5.1.

Where do I send such patches to?

Download here:
http://twoday.tuwien.ac.at/pub/files/python-xml-sax-saxutils (ZIP, 10 KB)

	-panzi



More information about the Python-ideas mailing list