I have an xml structure like this.
<pages>
<page a="1">111</page>
<page a="1" b="2">222</page>
<page a="1">333</page>
<page a="1" b="2" c="3" d="4">444</page>
<page a="1" b="2">555</page>
<page a="1">666</page>
</pages>
Xpath should return the value 444 since that node has got the maximum number of attributes. How can we do this? Please help.