HashMap<String, String> map = new HashMap<String, String>();
map.put("pmh", "http://www.openarchives.org/OAI/2.0/");
map.put("xb", "http://com/exlibris/digitool/repository/api/xmlbeans");
try {
XPath xpathURL = new Dom4jXPath("/pmh:OAI-PMH/pmh:ListRecords/pmh:record/pmh:metadata/xb:digital_entity/pmh:urls/pmh:url[@type='stream']");
xpathURL.setNamespaceContext(new SimpleNamespaceContext(map));
List urlList = xpathURL.selectNodes(list.getResponse());
for (Object aNode : urlList) {
try {
if (aNode instanceof Node) {
resultList.add(new URI(((Node) aNode).getText()));
}