XML with xpath and PHP: How to access the text value of an attribute of an entry

后端 未结 2 971
情话喂你
情话喂你 2020-12-12 03:43

xml:


  

        
2条回答
  •  囚心锁ツ
    2020-12-12 04:28

    You were close:

    ./link[@rel='alternate']/@href
    

    Should be the correct XPath to get those values.

提交回复
热议问题