modified to print all xml validation errors