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