如题所述
还是不大明白,能说具体点吗?最好有代码
上面导入dom4j所需的jar包SAXReader reader = new SAXReader();Document document = reader.read(new File(path));Element e = (Element) document.selectSingleNode("xpath");xpath的就看教程了。