更新时间:2021-12-14 02:19:26
这个错误意味着你安装的Java没有任何可以解析XMLSchema文件的类,所以不是schema或者你的代码有问题.
That error means that your installed Java doesn't have any classes that can parse XMLSchema files, so it's not a problem with the schema or your code.
p>
我很确定最近的 JRE 默认有合适的类,所以你能给我们提供 java -version
的输出吗?
更新:
您使用了错误的 XMLContants 字符串.你想要:XMLConstants.W3C_XML_SCHEMA_NS_URI
You're using the wrong XMLContants string. You want: XMLConstants.W3C_XML_SCHEMA_NS_URI