[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Get the first Array element
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Thu, 10 May 2012 16:09:27 +0100
Since there is no element called RoundingAmount in your input, why would you expect this XPath expression to select anything?

Michael Kay
Saxonica

On 10/05/2012 15:11, henry human wrote:
Hello
<elements> ....
<TaxTotal>
<otherAmount>22.00</otherAmount>
</TaxTotal>
.......
<TaxTotal>
<otherAmount>90.00</otherAmount>
</TaxTotal>
<TaxTotal>
.....
<Amount>44.00</Amount>
</TaxSubtotal>
</TaxTotal>
<TaxTotal>
.....
<Amount>10.00</Amount>
</TaxSubtotal>
</TaxTotal>
......
</elements> ---------------------
Ever I will get the FIRST Taxtotal because this has the Amount
I tried :cac:TaxTotal[1]/cbc:RoundingAmount
Butr It is wrong!
??

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member