参考: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>节点
时间: 2024-10-06 09:41:21