validate the generated xml