I
Ian Wilson
If I have this XML
<response>
<list>
<item>
<message>
<reply>
<something/>
<fee>
<type>A</type>
<amount>22</amount>
</fee>
<fee>
<type>B</type>
<amount>98</amount>
</fee>
<otherthings/>
</reply>
</message>
</item>
</list>
</response>
Is there an XPath expression I can use to get fee amount 98, i.e. the
contents of <amount> where <type> contains "B"?
<response>
<list>
<item>
<message>
<reply>
<something/>
<fee>
<type>A</type>
<amount>22</amount>
</fee>
<fee>
<type>B</type>
<amount>98</amount>
</fee>
<otherthings/>
</reply>
</message>
</item>
</list>
</response>
Is there an XPath expression I can use to get fee amount 98, i.e. the
contents of <amount> where <type> contains "B"?