Bugs item #1489825, was opened at 2006-05-16 16:25 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1489825&group_id=16035
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Maksim Kovalenko (maxota) Assigned to: Nobody/Anonymous (nobody) Summary: XMLWriter ignores OutputFormat.isExpandEmptyElements Initial Comment: If you use XMLWriter as ContentHandler to write SAX events to the stream, it expands empty elements even if OutputFormat.isExpandEmptyElements() is false. So instead of <a/> output will be <a></a>. This also causes XML validation errors for elements not allowed to have content. Error is in method org.dom4j.ui.XMLWriter.startElement(String namespaceURI, String localName, String qName, Attributes attributes). Closing angle bracket should not be written at this point but should be deferred to when endElement, characters, or ignorableWhitespace is called. Unittest attached. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1489825&group_id=16035 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ dom4j-dev mailing list dom4j-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-dev