My xml file is in the below format. I want to get the value between <fullName>..</fullName> tags say ABC and DEF. I am writing this in a while loop to reach each line as I need the value of fullName of each xml tag to be taken in another variable. grep will display all values together.
Thanks
<fields>
    <fullName>ABC</fullName>
    <trackFeedHistory>false</trackFeedHistory>
    <type>TY</type>
</fields>
<fields>
    <fullName>DEF</fullName>
    <trackFeedHistory>false</trackFeedHistory>
    <type>XY</type>
</fields>
