yamithu
12 years agoNew Contributor
Property Transfer- getting parameter from response
I want to get parameter from response but with condition
for exmple:
this is my response:
<LIST fullLength="5" timestamp="1395732018998">
<VodGift id="6040"
externalVideoId="y1_a"
videoName="y1_a" ">
</VodGift>
<VodGift id="6043"
externalVideoId="y1_b"
videoName="y1_b" >
</VodGift>
</LIST>
and I want to get the id where externalVideoId="y1_b"
to get the id without condition it:
//LIST/VodGift/@id
in old test I found:
//LIST/VodGift/return[@externalVideoId="y1_b"]/@id
but it didn't work in my test
someon know the syntax? or another way to do it?
for exmple:
this is my response:
<LIST fullLength="5" timestamp="1395732018998">
<VodGift id="6040"
externalVideoId="y1_a"
videoName="y1_a" ">
</VodGift>
<VodGift id="6043"
externalVideoId="y1_b"
videoName="y1_b" >
</VodGift>
</LIST>
and I want to get the id where externalVideoId="y1_b"
to get the id without condition it:
//LIST/VodGift/@id
in old test I found:
//LIST/VodGift/return[@externalVideoId="y1_b"]/@id
but it didn't work in my test
someon know the syntax? or another way to do it?