摘要:
基于XPath的解析:@Test public void test01() { InputStream is = null; try { is = Testxpath.class.getClassLoader().getResourceAsStream("books.xml"); DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = db.parse(is); XPath xpath = XPathFactory.newInstance.. 阅读全文