Validating XML against multiple XSD(stored as resources). Spring Boot
问题 I've spend a lot of time to validate XML against multiple XSD in Spring. Even when I give all XSD schemas to SchemaFactory it does not work because main schema can't see import schema declared in main XSD file. Even when I give this schemas as files it does not work, because Spring's resource files can't be resolved to absolute path . <xs:import namespace="http://test.com/types" schemaLocation="types.xsd"/> 回答1: 1. First we need this dependency which can parse xsd schemas: implementation("org