参考:https://yq.aliyun.com/articles/39543

 

SAXReader reader = new SAXReader();
Document document = reader.read(new File(dir+"/word/document.xml"));
Element roott=document.getRootElement();

Element addpicnode = (Element) roott.selectNodes("//w:tr").get(1);
Element addpicnode2 = (Element) addpicnode.selectNodes("descendant::w:tc").get(5);

 

获取document.xml全文第二个 <w:tr>节点中的第六个<w:tc>节点  

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2022-01-03
  • 2021-09-06
  • 2022-12-23
  • 2021-06-21
  • 2022-02-10
猜你喜欢
  • 2022-12-23
  • 2021-07-16
  • 2022-03-02
  • 2021-11-24
  • 2022-12-23
相关资源
相似解决方案