java - Validate an XML file against an XSD schema using JDOM 2.0 -


I'm looking for an example of how to validate XML file against XSD Schema using JDOM 2.0 Before parsing it before

I was searching for about an hour, but I could not find the solution that would work and allows me to provide the path to the XSD file (located on the local file system ) XML file from within the application code instead of one attribute.

I am surprised that there is not an easily accessible sample snippet on the Internet. If I can provide one here, I would be grateful.

View the XSSCSIMFactory:

On package documentation For more general discussion of type:

For some information on inspiration / feature, see the wiki page:

If you have more questions, comment here or insert a note in the jam-interest mailing list. If you feel that the documentation can be improved, comment on that too.

Comments