Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#28 Support short close tags in XMLWriter ContentHandler

open
nobody
None
5
2012-10-08
2010-02-03
Alan Harder
No

XMLWriter.endElement() has "hadContent" hardcoded to true, so when using the ContentHandler interface methods it always writes a long closing tag for empty elements (looks like going through writeElement() does support short close).
This patch tracks whether tags are empty so it can use the right closing method.
Patch is from dom4j 1.6.1, but hopefully still applies w/o much rework in 2.0 alpha.

Discussion

  • Alan Harder
    Alan Harder
    2010-02-03

     
    Attachments