Forum Discussion
PaulDonny
12 years agoRegular Contributor
for $b in //ns3:EquipmentPosition
return(<equipment>
{
let $y := //ns3:DatEquipmentId[$b]
for $avtext in $y
return (<equipment>{data($avtext)}</equipment>)
}
</equipment>)
I combined a bit of everyone's code here to make it work out.
And an example of the results:
<equipment>26803</equipment><equipment>40000</equipment><equipment>18603</equipment><equipment>97000</equipment>
BTW, thanks. I haven't used XQuery in quite a while and I really need to freshen up on it.