Coordinates from a XML-file to a contoured map to a heightmap

My problem is I have a xml-file and I need a topographic map and a heightmap for 3D rendering.
Do someone know how to do one of these steps ? Would help a lot.

Check out TerrainData, specifically SetHeights.