要从下面的XPath中过滤出两个描述值,正确的XML表达式是什么:
<course>
<description>This is a description of the course</description>
<description xsi:type="learning:outcome">This is the description of the learning outcome of the course</description>
</course>我认为正确的XPath应该是:
//course/description[@xsi:type=""]
//course/description[@xsi:type="learning:outcome"]但在XMLSpy或我在Drupal的导入器中尝试时,这并不起作用,任何建议都将不胜感激。
发布于 2012-07-26 19:44:07
我认为您将xsi:type错误地键入为xsi:path。
此外,还需要确保在XPath上下文中声明了xsi名称空间。
https://stackoverflow.com/questions/11665050
复制相似问题