Bugs item #1489851, was opened at 2006-05-16 21:21 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=1489851&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: xman76 (xman76) Assigned to: Nobody/Anonymous (nobody) Summary: xmlns="" is lost when transforming from DocumentSource Initial Comment: Given the following XML document: <a xmlns="http://a.com"> <b/> <b xmlns=""/> </a> The DOM tree correctly reflects the http://a.com URI for the <a> and first <b> elements and "" for the second <b> element in the Element.getNamespaceURI() method. However, once the tree is transformed into a StreamResult (into a String, for example), the following document is output: <a xmlns="http://a.com"> <b/> <b/> </a> This is incorrect, since the second <b> element has effectively been moved from the empty namespace to the http://a.com namespace, which is confirmed when the result document is reparsed into a DOM tree and Element.getNamespaceURI() is called on each element again. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1489851&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