<Elements xmlns="http://www.163.com" xmlns:dc="http://www.163.com">
<test>
<title> 标题 </title>
</test>
</Elements>
SAXReader saxReader = new SAXReader();
Document document = saxReader.read(new File(filename));
HashMap xmlMap = new HashMap();
xmlMap.put("plugins","http://www.163.com"); //假设的命名空间
XPath x = document.createXPath("//plugins:test/plugins:title"); //读取二级节点,研究了半天
x.setNamespaceURIs(xmlMap);
Element valueElement = (Element)x.selectSingleNode(document);
System.out.println(valueElement.getText()); //输出该节点内容