如何选择所有 XML 元素



如何在XML文件中选择stRef:filePat中的所有元素?我设法找到的示例仅选择了 1 个特定元素。例如:

/Volumes/WIP/AAA/BBB/CCC/DDD/123.tif  
/Volumes/WIP/AAA/BBB/CCC/DDD/456.tif  
/Volumes/WIP/AAA/BBB/CCC/DDD/789.tif  
/Volumes//WIP/AAA/BBB/CCC/DDD/321.tif  

法典

<xmpMM:Manifest>
  <rdf:Seq>
    <rdf:li rdf:parseType="Resource">
      <stMfs:linkForm>EmbedByReference</stMfs:linkForm>
      <stMfs:reference rdf:parseType="Resource">
        <stRef:filePath>/Volumes/WIP/AAA/BBB/CCC/DDD/123.tif</stRef:filePath>
      </stMfs:reference>
    </rdf:li>
    <rdf:li rdf:parseType="Resource">
      <stMfs:linkForm>EmbedByReference</stMfs:linkForm>
      <stMfs:reference rdf:parseType="Resource">
        <stRef:filePath>/Volumes/WIP/AAA/BBB/CCC/DDD/456.tif</stRef:filePath>
      </stMfs:reference>
    </rdf:li>
    <rdf:li rdf:parseType="Resource">
      <stMfs:linkForm>EmbedByReference</stMfs:linkForm>
      <stMfs:reference rdf:parseType="Resource">
        <stRef:filePath>/Volumes/WIP/AAA/BBB/CCC/DDD/789.tif</stRef:filePath>
      </stMfs:reference>
    </rdf:li>
    <rdf:li rdf:parseType="Resource">
      <stMfs:linkForm>EmbedByReference</stMfs:linkForm>
      <stMfs:reference rdf:parseType="Resource">
        <stRef:filePath>/Volumes//WIP/AAA/BBB/CCC/DDD/321.tif</stRef:filePath>
      </stMfs:reference>
    </rdf:li>
  </rdf:Seq>
</xmpMM:Manifest>

使用 xpath 请求是: //stRef:filePath

相关内容

  • 没有找到相关文章

最新更新