we have a case where it is required to transform the input data and we need to validate the data before we act on it deeper.
So one option we found is to use a XSD Validator, where the data comes in is XML and appears like a validator could help.
Kindly provide any suggestion as to whether this is a good practice or not. the other option we thought is instead of XSD validation we will explicitly validate the incoming data using some code (for eg: Java) to validate mandatory fields, data type, size etc. what do you suggest about this!!