xml文件是:
<xml-fragment xmlns:xyz="http://someurl">
<xyz:xyzcontent>
<contentattribute>
<key>tags</key>
<value>tag1, tag2</value>
</contentattribute>
</xyz:xyzcontent>
...
我尝试了以下方法:
XPathExpression createdDateExpression = xpath.compile("/contentattribute/key/attribute::tags/value");