I am using './/*[contains(local-name(), "revenue")]' to retrieve all the nodes exactly matches "revenue" tag with all the variation(Upper case,lower case and Mixed) and not the nodes that has "revenue" as substring.
from the below xml data. I want to retrieve "revenue"and "Revenue" tags only and not "interestRevenue","transactionrevenue", "revenueOtherServices" tags
<financial_statement>
<revenue>123</revenue>
<Revenue>456</Revenue>
<interestRevenue>234</interestRevenue>
<salaries>12</salaries>
<transactionrevenue>345</transactionrevenue>
<revenueOtherServices>109</revenueOtherServices>
<sales>783</sales>
<costs>746</costs>
.....
</financial_statement>
Is there any way to do it ?
Thanks in advance.