我使用 Oxygen XMLTester 进行 XPath 选择器的工作,支持 XPath 2.0 规范。所以我想知道是否有任何在线测试工具可以使用 XPath 2.0 规范?
http://www.xmlme.com/XpathTool.aspx
http://www.xpathtester.com/test
上述测试工具无法处理以下 XPath(2.0成功了):/list/sum(item/prices/price[@currency='USD']),XML数据如下:
<list>
<item new='true'>
<title lang="en">Pop-Music DVD</title>
<author >K. A. Bred</author>
<year>2012</year>
<prices>
<price currency="USD">29.99</price>
<price currency="EUR">23.2</price>
</prices>
</item>
<item new='false'>
<title>Gone with the wind</title>
<author>M. Mitchell</author>
<year>1936</year>
<prices>
<price currency="USD">19.05</price>
<price currency="EUR">15</price>
</prices>
</item>
</list>