Where are the JAXB schemas published?

我的未来我决定 提交于 2020-01-13 14:01:39

问题


The JAXB 1.0 and JAXB 2.0 schemas are supposed to be available from the Bindings Schema for JAXB site. Unfortunately, it was last updated in 2005 and all of the links are broken. What is the official location of the schemas? There should be some authoritative source for v1.0, 2.0, 2.1 and 2.2.


回答1:


JAXB XML Schemas

JAXB 1.0 XML Schema

JAXB 2.0 XML Schema

It seems that there is no version 2.2 of the schema. The most recent would be 2.1.

And an old post from the java.net forums (now defunct) stated:

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.

The relevant files in jaxb-xjc-2.2.11.jar are:

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

From the source repository: Binding, XJC and XS schemas.

Note: In addition to the original 1.0 and 2.0 schema links from 2005 being broken at least twice (changed from sun.com to oracle.com, then moving into Oracle's technetwork), the locations for the 2.1 schemas changed at least four more times between 2015 and 2018 due to a switch from http to https on java.net, the closure of java.net, migration of the code base to GitHub, and refactoring to move the schemas from src/main/java to src/main/schemas.



来源:https://stackoverflow.com/questions/30946793/where-are-the-jaxb-schemas-published

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!