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_0WS_Addr_1_0_CoreXHTML_1_0_StrictXLink_1_0XSD_1_0
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();
});