2013年6月5日
摘要: 基于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.. 阅读全文
posted @ 2013-06-05 23:11 zcjava 阅读(149) 评论(0) 推荐(0) 编辑