String P="E://baosteel_sgm//src//ApplicationContext.xml";
SAXReader saxReader = new SAXReader();
Document document = saxReader.read(new File(P));

//查询Element
String xpath ="/beans/bean[@id='sessionFactory']/property[@name='mappingResources']/list/value";//查询属性type='ondDelete'的composite



String oridir="E://baosteel_sgm//src//";
List sf= document.selectNodes(xpath);
for(int i=0;i
{
Element node=(Element) sf.get(i);
String file=oridir+ node.getText();
BOMRemover.trimBom(file);
System.out.println(node.getText());
}

Powered by Zoundry

相关文章:

  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案