In my view, we should just use JAXP validation as an on demand step before parsing the xml. If the user or our tests want to validate the xml against known schemas, why not just use standard JAXP validation API?