SAXReader reader = new SAXReader(); Document doc = reader.read(new ByteArrayInputStream(sbf.toString() .getBytes("UTF-8"))); // 读取 Map map = new HashMap(); map.put("namespace", "http://tempuri.org/"); // 解析有命名空间的xml获取数据 XPath introDetail = doc.createXPath("//IntroDetail"); introDetail.setNamespaceURIs(map); String strIntroDetail = introDetail.selectSingleNode(doc) .getText();