Forum Discussion

yamithu's avatar
yamithu
New Contributor
12 years ago

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?

3 Replies

  • arokia's avatar
    arokia
    Occasional Contributor
    <Response xmlns="xxxx">
    <token>
    <production>
    <access_token>xxxxxx</access_token>
    </production>


    I am trying to get the value of access_token .
    Xpath i used is /Response[@xmlns="xxxx"]/token/production/access_token/text() and i get unexpected CData

    also I am trying to pass this to the request header of other request .

    Appreciate any help