日期:2014-05-19 浏览次数:20779 次
SAXReader reader = new SAXReader(); try { Document doc = reader.read(new File("E:/tt.xml")); Element root = doc.getRootElement(); List<Element> list = root.selectNodes("/books/book/*[@rightTerm='achui2_0724@sina.com' | @ct = '']"); System.out.println(list.size());