What is the current JAXB Bindings XML Schema URL?

I am trying to automate the creation of Java classes from XML DTD using xjc. Generated Java classes must be serializable. Articles that help with this add a pointer to a binding file that uses the http://java.sun.com/xml/ns/jaxb schema for the JAXB namespace, but this URL doesn't "t anymore.

The URL http://java.sun.com/xml/ns/jaxb is redirected to http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/jaxb/index.html which in turn says that http://java.sun.com/xml/ns/jaxb is the last URL, but links to http://www.oracle.com/xml/ns/jaxb/ , which is also redirected to http: // www .oracle.com / webfolder / technetwork / jsc / xml / ns / jaxb / index.html .

A bit confusing.

I found Oracle tutorials updated in 2014 that still use this URL, and I did not find another. Does anyone have more relevant information?

+4
source share
1 answer

This works for me:

<?xml version="1.0" encoding="UTF-8"?>
<jaxb:bindings xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:jaxb='http://java.sun.com/xml/ns/jaxb' version='2.1'
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://java.sun.com/xml/ns/jaxb http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/jaxb/bindingschema_2_0.xsd">

</jaxb:bindings>
+3
source

All Articles