How do i create this type of mesh?

The xml meshes are deprecated, and I would not aim at trying to create anything in that format. The preferred format now is XDMF, and there are plenty of threads on this, see: Transitioning from mesh.xml to mesh.xdmf, from dolfin-convert to meshio - #3 by dokken
and
Accessing and marking imported boundaries - #8 by dokken

1 Like