2012-02-22 125 views
0

如何使用xpath在我的xml中访问我的url字符串?xpath和xml命名空间

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

谢谢。

回答

0

这样

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


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

非常感谢你的比赛。 – samir 2012-02-22 12:03:28