The Sun Multi-schema Verifier is a library that validates XML documents against several types of schemas. It is maintained by Kohsuke Kawaguchi, a Sun employee, but it does not appear to be included in Java or JAXB.
MSV can be run as a command line utility or called as library functions.
It requires the schema definition file as input, along with the XML file to validate. For eLandings, this will require that all schema definition files for different version number are available, and custom code will need to be written to parse the XML file to determine the version to use.
MSV does not format the XML file before verifying it. Therefore, if the XML file does not include newline characters the messages will always refer to line 1. This is not convenient when displaying the XML back to the user.
Examples of output:
LR22722.xml - disposition code data not entered
Error at line:1, column:2,523 of file:///C:/tmp/msv-20081113/LR22722.xml Content of element "disposition_code" is incomplete the document is NOT valid.