I need to extract the count of that element which has the maximum occurrences, For example in below xml, I need count to be returned as 2 which is for the Email element.
<root>
<_1>
<attributes>
<Email>
<ov>true</ov>
<value>
<Email>
<ov>true</ov>
<value>[email protected]</value>
</Email>
</value>
</Email>
<Email>
<ov>true</ov>
<value>
<Email>
<ov>true</ov>
<value>[email protected]</value>
</Email>
</value>
</Email>
<UniqueId>
<ov>true</ov>
<value>39919741</value>
</UniqueId>
</attributes>
</_1>
</root>
Emailelements,although two of them are nested. There are fiveovelements. So you will need to explain more precisely what you want to achieve or what you consider a "maximum occurrence". - Martin Honnen