I have specific reason not to include the DTD in the XML file.
Is it not possible to link the DTD to the XML programatically?
After reading around it appears the settings of the parser 'set External Schema Location' is able to hold a list of schemes but when I do this in my code, it doesn't validate correctly. This action is successfully performed when I compare it against one schema.
When I attempt to compare it against multiple schema (like the code snippet above) it doesn't fail when it should.
For an XML document to be valid based on an XML schema, the XML document has to be validated against the XML schema.So I was wondering if there was a way to validate an xml file against multiple schemas.and that for each element or attribute I have in my XML file.Re-phrase my answer: In short, one possible workaround is using DOMLSParser as described in this sample program which is described in this blog.Also, I found two possible duplicate questions: 1 and 2.