I have a XML file like this structure
<DOC>
<S Sid='1'>
<REF ID='1' TYPE='ANAPHOR' EXT='NAME'>he</REF>is hardworking guy.
</S>
<S Sid='2'>
<REF ID='2' TYPE='ANAPHOR' EXT='FAMILY'>he</REF>
</S>
</DOC>
I would like to replace the REF element value (he) with EXT value (NAME) .Make consider the value of EXT and REF element are different and I have many REF element in my document .Please kindly help me.I do not know which perl module is suitable for my problem.Tx