Forum Discussion
DatSupport
12 years agoNew Contributor
Hi Guys,
thank you for your response. I tried both of your proposals. While the first proposal of mrao only returned exactly one match, the proposal of PaulM was, referring to the result, a bit like my own ones, because there are enclosing <equipment> tags around the inner single <epuipment> tags (see below the red ones).
<equipment><equipment>26803</equipment><equipment>40000</equipment><equipment>70303</equipment><equipment>29500</equipment><equipment>18904</equipment><equipment>22202</equipment><equipment>97000</equipment><equipment>10004</equipment><equipment>75205</equipment></equipment>
The problem is, that I don't need to have the outer enclosing equipment tags. I only want to have each value enclosed by an equipment tag. But every time I just try to leave off the outer equipment I get a java.lang.reflect.InvocationTargetException. It's not possible to have the following code working:
What do I have to do to get only the inner equipment tags working?
I hope you understand that problem.
Regards,
H
thank you for your response. I tried both of your proposals. While the first proposal of mrao only returned exactly one match, the proposal of PaulM was, referring to the result, a bit like my own ones, because there are enclosing <equipment> tags around the inner single <epuipment> tags (see below the red ones).
<equipment><equipment>26803</equipment><equipment>40000</equipment><equipment>70303</equipment><equipment>29500</equipment><equipment>18904</equipment><equipment>22202</equipment><equipment>97000</equipment><equipment>10004</equipment><equipment>75205</equipment></equipment>
The problem is, that I don't need to have the outer enclosing equipment tags. I only want to have each value enclosed by an equipment tag. But every time I just try to leave off the outer equipment I get a java.lang.reflect.InvocationTargetException. It's not possible to have the following code working:
for $b in //ns3:EquipmentPosition
return( /*here I left out the <equipment> tag */
{
let $y := //ns3:DatEquipmentId[$b]
for $avtext in $y
return (<equipment>{data($avtext)}</equipment>)
}
/* I left out the </equipment> tag, too */)
What do I have to do to get only the inner equipment tags working?
I hope you understand that problem.
Regards,
H