【发布时间】:2010-07-27 20:06:14
【问题描述】:
我的 XML 文件条目:
<GlobalView xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<rels>
<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>
</rels>
想要在关系元素中查询属性 ID.... 我正在使用下面给出的查询,它一直有效,直到元素关系并且没有给我 Id 属性的值。
for $file in doc("C:/Users/Raffay/Desktop/RnDxr.xml")
return $file/GlobalView/child::rels/child::Relationship
提前致谢
【问题讨论】:
标签: xml namespaces xquery