Added xsd schema validation to api process.