Conversion from .msh to .xml

You can take a look here Transitioning from mesh.xml to mesh.xdmf, from dolfin-convert to meshio
There it is mentioned how to get the data from gmsh.