FEniCSx about generating mesh through xml files

I just started using Fenicsx. When I try to convert a fenics code into a fenicsx code, I’m having trouble generating the mesh. The FEnics code is given a .xml file to mesh. And it can use “Mesh” command based on FEnics. But I can’t find how to use XML files to generate meshes in Fenicsx.

I’m looking forward to the reply. Thank you very much!

The original code is
微信图片_20220925192253

The stationary_circle.xml is
微信图片_20220925192258

And the stationary_circle_facet_region.xml is
微信图片_20220925192301

Xml as a file format is not supported in DOLFINx. You should convert it to xdmf files (this is also the recommended file format in legacy dolfin). You can for instance do this with meshio: