设置验证 XML 文档时,我的语句
String schemaLanguage = XMLConstants.W3C_XML_SCHEMA_NS_URI;
SchemaFactory schemaFactory = SchemaFactory.newInstance(schemaLanguage);
失败:
java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema
关于为什么会这样以及可以做什么的任何想法?