JAXB模式在哪里发布? [英] Where are the JAXB schemas published?

查看:102
本文介绍了JAXB模式在哪里发布?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JAXB 1.0和JAXB 2.0模式应该可以从 JAXB 站点的绑定架构。不幸的是,它最后一次更新于2005年,并且所有链接都被破坏了。模式的官方位置是什么?应该有一些v1.0,2.0,2.1和2.2的权威来源。

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.

推荐答案

JAXB XML Schemas

JAXB 1.0 XML Schema

JAXB 2.0 XML Schema

似乎没有2.2版的模式。最近的将是2.1。

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

以及来自java.net 论坛(现已解散)的旧帖子声明:

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


我认为它没有发布(我们应该修复那个),但是如果你有一个jaxb-xjc jar文件,你可以在jar里找到它。

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

从源存储库:绑定 XJC XS 模式。

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

注意:除了2005年的原始1.0和2.0架构链接至少被破解两次(从 sun.com 更改为 oracle.com ,然后进入Oracle的 technetwork ),由于从 http java.net 上的$ c>到 https ,关闭 java.net ,将代码库迁移到GitHub,并重构将模式从 src / main / java 移动到 src / main / 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.

这篇关于JAXB模式在哪里发布?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆