[RESOLVED] extract data from nodes depending on the condition
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2009
01:46 PM
10-15-2009
01:46 PM
[RESOLVED] extract data from nodes depending on the condition
Hi,
In the below response, I want to search for Commentary and then if I find it assert that its commentary and then extract ID,SpotID and then i need to pass as input to another request
I have such nodes with variety other than commentary and there could be more than one commentary elements with different ID and SpotID.
4
true
2009-10-15T16:00:53.3833256-04:00
2009-10-15T16:00:53.3833256-04:00
faceoff_u3rd_logo_1
1
18
commentary ------- This is what i need to assert.
logo_soundoff_1
1
Primary
83
-40
83
190
107
1
Attaching the whole response
In the below response, I want to search for Commentary and then if I find it assert that its commentary and then extract ID,SpotID and then i need to pass as input to another request
I have such nodes with variety other than commentary and there could be more than one commentary elements with different ID and SpotID.
Attaching the whole response
15 REPLIES 15
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2009
11:27 AM
10-22-2009
11:27 AM
Hi,
i tried it dint work....i am getting ID value but not SpotID value.
what should I give property name for SpotID?
i tried it dint work....i am getting ID value but not SpotID value.
what should I give property name for SpotID?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2009
11:36 AM
10-22-2009
11:36 AM
I am not getting second column path value.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2009
02:27 AM
10-23-2009
02:27 AM
Hello,
based on response you sent:
row:
and:
Does it help,
robert
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
based on response you sent:
row:
declare namespace aetgt='http://musicchoice.com/services/games';
//aetgt:GetSpotListsResponse/aetgt:GetSpotListsResult/aetgt:spotlists/aetgt:Spotlist/aetgt:Spots/aetgt:Spot[aetgt:Variety='commentary']
and:
../../aetgt:ID/text()
aetgt:SpotID/text()
Does it help,
robert
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2009
09:13 AM
10-23-2009
09:13 AM
Hi Robert,
I tried but still no luck!
It gives me the value of
../../aetgt:ID/text()
It doesnt go to aetgt:SpotID/text() line.
I tried but still no luck!
It gives me the value of
../../aetgt:ID/text()
It doesnt go to aetgt:SpotID/text() line.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009
03:28 AM
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009
06:26 AM
10-26-2009
06:26 AM
Hi,
Sorry for the trouble...its working....there was space between aetgt and SpotID...thats why it dint work...
now its working perfectly.
I was using aetgt: SpotID/text() instead of aetgt:SpotID/text()
Thank you very much for the help.
Sorry for the trouble...its working....there was space between aetgt and SpotID...thats why it dint work...
now its working perfectly.
I was using aetgt: SpotID/text() instead of aetgt:SpotID/text()
Thank you very much for the help.

- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »