Find max value of field in xml using Linq
Hi,I want to find the maximum value of a particular field from XML file.
following is my XML file
<?xml version="1.0" encoding="utf-8"?>
<FeeGroups>
<FeeGroup>
<FeegId>100</FeegId>
<Fgname>sss</Fgname>
<FgDetail>dgdgdgdg</FgDetail> />
</FeeGroup>
<FeeGroup>
<FeegId>101</FeegId>
<Fgname>sss1</Fgname>
<FgDetail>rtrtrt</FgDetail>
</FeeGroup>
<FeeGroup>
<FeegId>102</FeegId>
<Fgname>sss2</Fgname>
<FgDetail>klklkl</FgDetail>
</FeeGroup>
<FeeGroup>
<FeegId>103</FeegId>
<Fgname>sss3</Fgname>
<FgDetail>mnmnmn</FgDetail>
</FeeGroup>
</FeeGroups>
my requirement is to fetch the maximum value of FeegId from the above xml
Regards
Baiju