JAXB 1.0 和 JAXB 2.0 模式应该可以从 Bindings Schema for JAXB 获得。地点。不幸的是,它最后一次更新是在 2005 年,所有链接都已损坏。模式的官方位置是什么? v1.0、2.0、2.1 和 2.2 应该有一些权威来源。
最佳答案
JAXB XML 模式
好像没有2.2版的schema。最新版本是 2.1。
还有一个 old post from the java.net论坛(现已不存在)声明:
I don't think it has been published (we should fix that), but if you have a jaxb-xjc jar file, you can find it inside the jar.
jaxb-xjc-2.2.11.jar
中的相关文件是:
com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd
com/sun/tools/xjc/reader/xmlschema/bindinfo/xjc.xsd
com/sun/tools/xjc/reader/xmlschema/bindinfo/xs.xsd
注意:除了 2005 年的原始 1.0 和 2.0 架构链接至少被破坏两次(从 sun.com 更改为 oracle.com,然后转移到 Oracle 的 technetwork),2.1 模式的位置在 2015 年至 2018 年间至少又更改了四次,原因是从 http
切换。至 https
在 java.net 上,关闭 java.net,将代码库迁移到 GitHub,并重构以将架构从 src/main/java
移动至 src/main/schemas
.
关于java - JAXB 模式在哪里发布?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30946793/