Bugs item #1380249, was opened at 2005-12-14 01:06
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=1380249&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: multiple empty namespace nodes 1.5 -> 1.6.1

Initial Comment:
I have updated from dom4j 1.5.x to 1.6.1.

In the document will be many empty namespace nodes if I
execute this code:

List namespaces = document.selectNodes("//namespace::*");
Map namespaceMap = new HashMap(namespaces.size());
for (Iterator i = namespaces.iterator(); i.hasNext();) {
  Namespace namespace = (Namespace) i.next();
  namespaceMap.put(namespace.getPrefix(),
namespace.getURI());
}
XPath xPath = document.createXPath(xPathExpression);
xPath.setNamespaceURIs(namespaceMap);



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1380249&group_id=16035


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
dom4j-dev mailing list
dom4j-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to