we are dealing with several XSD's and XML files for different versions. We want to make sure that a xml file can be validated with its correct XSD. Is there a way to do it? So far I've come to this conclusions:
I should also mention that we can't make sure the xml we get is correct to any XSD, because it can be passed by a third party.
Any help is appreciated!
I would put a version number on the root element, and then use an XProc pipeline to control the validation, where the XProc pipeline decides which schema to validate against based on what it sees in the version number.