Converting 3D mesh to xdmf/h5

In the post you are referring to, there are many examples on how to load meshes with xdmf.
For anyone to be of further help, you need to supply the meshio version you are using, as the user interface has changed lately (Latest version syntax can be found in this post in the same thread as above: Transitioning from mesh.xml to mesh.xdmf, from dolfin-convert to meshio)