Mesh Markers in GMSH

You posted this question with dolfinx tag, but the code seems to be using legacy-dolfin?

Either way, I think you need to clarify how you ended up obtaining crack.xml in your code. It’s probably better to convert to XDMF file, as explained in the link below.