2012-02-22 127 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