How to convert the DEM in the extension (*.dem) into (*.xyz) file?

EAD??, IHRF??

From the name it looks an SRTM tile and GMT can read SRTM tiles perfectly. In fact we even provide all SRTM topography. See the datasets page