The XMLTools:-Validate function can be called with a reference to a schema.
I am a bit unsure where the schema location should be, especially if I can have the .xsd file in a library location.
Have done some tests, and as far as I can see, Maple does not give any error messages if the schema is not found at all. So I'm a bit unsure how to check if the schema defintion actually is read at all.