How to specify Boundary conditions when the mesh is imported from GMSH?

As you have written the boundary data to xdmf, you can read it in as described in:

and use the mesh function in the boundary condition as described in