Replacing text inside xmltag

Hi All-

I have a xml file with tag

<Forename>ABCDEF</Forename>
<Surname>ABCDEFGH</Surname>

in between tag it could be anything I need to search

<Forename></Forename> 

and change what ever there in between

Regards,
Sreejit

Is this you are looking for ?

sed 's@<\(Forename\)>\(.*\)</\1>@<\1></\1>@' t1

-- t1 is the file name which has the given content.