Skip to content

XML<->Java (JAXB) and XML<->JS (Jsonix) bindings for W3C XML Schemas.

License

Notifications You must be signed in to change notification settings

terrestris/w3c-schemas

 
 

Repository files navigation

W3C Schemas

W3C Schemas project provides JAXB and Jsonix bindings for some of the XML Schemas defined by W3C.

This allows converting between XML (conforming to one of these schemas) and Java objects in Java or JSON in JavaScript.

Supports the following schemas:

  • Atom_1_0
  • WS_Addr_1_0_Core
  • WSDL_2_0
    • WSDL_HTTP_2_0
    • WSDL_RPC_2_0
    • WSDL_SOAP_2_0
  • XHTML_1_0_Strict
  • XLink_1_0
  • XSD_1_0

JavaScript Example

var XLink_1_0 = require('w3c-schemas').XLink_1_0;

var context =  new Jsonix.Context([XLink_1_0]);
var unmarshaller = context.createUnmarshaller();
unmarshaller.unmarshalFile("tests/locator-01.xml", function(result) {
	test.equal("label", result.value.label);
	test.done();
});

Changelog

3.0.0

  • use jakarta.xml.bind instead of java.xml.bind
  • update dependencies

2.0.0

  • use new group id org.w3c-schemas
  • require Java 8
  • update dependencies
  • add AUTOMATIC-MODULE-NAME entries to jar files

About

XML<->Java (JAXB) and XML<->JS (Jsonix) bindings for W3C XML Schemas.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.8%
  • Other 0.2%