Meshio can convert files from xdmf to xml. Why do you specifically need to have mesh=Mesh("file.xml"
and not use the syntax described here, which is recommended: Transitioning from mesh.xml to mesh.xdmf, from dolfin-convert to meshio - #3 by dokken