XPath 在 R 中的 XML 文档上失败 [英] XPath fails on an XML document in R
问题描述
我很高兴能找到有关使用 R 进行 XML 操作的帮助.
I'll be glad to find some help with XML manipulation with R.
我正在尝试对我的 XML/TEI 文件进行 XPath.这是它的结构:
I'm trying to proceed XPath on my XML/TEI file. Here's its structure :
<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<text>
<body>
<div>
<p>
<seg>
<name ref="Actr1235">Jen B.</name>frate M. <name ref="Actr1234">Léard B.</name> rhoncus orci quis luctus ultrices <note place="margin-left">1713 & 1714</note>, a été
vehicula cursus nunc, at sagittis lorem aliquet sed <name ref="Actr1236"> Jaes L.</name>
aeman graeca <name type="place">Digo</name> iaculis volutpat risu <name ref="Cole14">la
Charias</name>. M. <name ref="Actr1236">Laure</name> bibendum augue erat, fermentum semper. M. <name ref="Actr1235">B.</name> bibendum augue erat, fermentum semper
</seg>
</p>
</div>
</body>
</text>
</TEI>