validation with xml