I need to find the maximum of different values, some that are mathematical equations.
Below is my XML:
<History AccountBalance="100"
AccountLimit="500"
AccountBalanceAvailable="400"
ValueX="50"
ValueY="75"/>
I want to find the Max of:
Max((AccountBalance + ValueX + ValueY), (AccountBalanceAvailable - ValueY))
I'm new to XPath and can't find examples of something like this.
Don't even know where to start. In this example
This would evaluate to Max(225 or 325) = 325
I don't know how to do that in XPATH.