XMLGenerator: <empty/> instead of <empty></empty>
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
Create an issue at http://bugs.python.org/ . -Brett On 10/22/07, Mathias Panzenböck <grosser.meister.morti@gmx.net> wrote:
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 _______________________________________________ Python-ideas mailing list Python-ideas@python.org http://mail.python.org/mailman/listinfo/python-ideas
participants (2)
-
Brett Cannon
-
Mathias Panzenböck