Jump to content

xpath query


rossmurphy

Recommended Posts

Trying to retrieve the value of medal where pattern_name=X.

 

I have tried like this:

 

$row = $apicall->xpath('row[@pattern_name="Curling"]@medal');

 

<row last_win_date="1265326562133" medal="G" pattern_name="Cross Country" user_alias="Player1" user_id="WFG120"/>
<row last_win_date="1265356801650" medal="G" pattern_name="Alpine" user_alias="Player1" user_id="WFG120"/>
<row last_win_date="1265354641707" medal="G" pattern_name="Any 2 Lines" user_alias="Player1" user_id="WFG120"/>

 

Anyone know how to do this?

 

 

Link to comment
https://forums.phpfreaks.com/topic/191673-xpath-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.