Is there a way I can get the maximum value of a given attribute in an xml file using xpath?
Eg. if I wanted the max "id"
<root>
<subject>
<message id="2"/>
<message id="4"/>
<message id="8"/>
</subject>
<subject>
<message id="5"/>
</subject>
</root>
would return "8".
Thanks.
