Forum Discussion
nmrao
3 years agoChampion Level 3
I believe it is because of multiple of "segmentReference".
To drill down to single value, use the reference of segmentId
To drill down to single value, use the reference of segmentId
- AndresEnriquez3 years agoOccasional Contributor
Thanks for your quick reply nmrao 😊
In order to do this: To drill down to single value, use the reference of segmentId. Do I have to use Xquery?
Could you teach me how to do it?
Sorry for the basic questions, It's been days since I'm using the program.
Cheers
- nmrao3 years agoChampion Level 3Please try below xpath
//*:segmentInfo[*:segmentId='AltaPrepSur']/*:segmentReference/text()- AndresEnriquez3 years agoOccasional Contributor
Awesome!
That worked perfectly
I have a lot to learn about xquery language
Do you have any guide recomendation?
Thanks a lot nmrao !
- AndresEnriquez3 years agoOccasional Contributor
I have been reading other posts and articles about Xquery and I wrote this piece of code
<asdf>
{
for $a in //ns3:segmentInfoList/ns3:segmentInfo
where $a/ns3:segmentId='AltaPrepSur'
return <ns3:segmentReference> {data($a/ns3:segmentReference/text())} </ns3:segmentReference>
}
</asdf>but it doesn't seem to work, it returns the tag <asdf>
Related Content
- 5 years ago
- 6 years ago
- 2 years ago
Recent Discussions
- 19 hours ago