Performs XML validation using JAXP for validating against XSD or RelaxNG