Need to replace XML TAG

As per the requirement I need to replace XML tag with old to new on one of the XML file.

Old

<com : DEM>PHI</com : DEM>

New

<com : DEM>PHM</com : DEM>

Please someone provide the sed command to replace above mentioned old XML tag with new XML tag

sed -e 's#<com : DEM>PHI</com : DEM>#<com : DEM>PHM</com : DEM>#'

Hello,

Following may also help you.

echo "<com : DEM>PHI</com : DEM>" |  awk 'gsub("PHI","PHM") 1'

Thanks,
R. Singh