added xsd validation, but didn't work as expected.