标签:yun ref ott reader select new ant element style
参考: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>节点
xml文件节点读取时,selectNodes总是在根节点下查找的问题
标签:yun ref ott reader select new ant element style
原文地址:http://www.cnblogs.com/xlj227/p/7504558.html