xpath和xml名称空间

xpath和xml名称空间,xml,xpath,Xml,Xpath,如何使用xpath访问xml中的url字符串 <images xmlns:a="http://.../Arrays"> <a:string>http://images...233/Detail.jpg</a:string> <a:string>http://images....233/Detail2.jpg</a:string>

如何使用xpath访问xml中的url字符串

                <images xmlns:a="http://.../Arrays">
                   <a:string>http://images...233/Detail.jpg</a:string>
                   <a:string>http://images....233/Detail2.jpg</a:string>
               </images>

http://images...233/Detail.jpg
http://images....233/Detail2.jpg
谢谢。

像这样

/images/*[local-name()='string']   This will get you the nodes.


/images/*[local-name()='string']/text()   This will give the text content in the node.