XMLGenerator: <empty/> instead of <empty></empty>
22 Oct
2007
22 Oct
'07
11:48 p.m.
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
6023
Age (days ago)
6023
Last active (days ago)
1 comments
2 participants
participants (2)
-
Brett Cannon
-
Mathias Panzenböck