I have searched for this question over one year but it seems its an mysterious question!! I need to generate an offline TMS and corresponding XML file in WGS84 projection to be connected and shown in OpenSceneGraph 3D engine. The elevation file format should be GeoTiff and extracted from the SRTM database.
Note that global mapper has this option (export -> web format -> TMS), but the output is in Mercator projection. On the other hand, activating WGS84 option in global mapper export page would leads to error. I also tried to export in Mercator and reprojecting the tiles' files but the XML file remained in mercator :((
Best,