i have a xml file & a given xsd

XML file will be created from any source of data
after the file creation i need to just validate/ check the data against the given xsd
ie if a field is defined a numeric and if any charcter is entered in it than it shld display the invalid data error msg
if a field needs to contain a date field & if the data is invalid as checked against the xsd it shld display the message

accordingly

is this way of validation for XML possible against a given XSD??
or how do i solve this issue