@terrestris/w3c-schemas

2.0.0 • Public • Published

W3C Schemas

w3c-schemas package provides Jsonix XML-JSON bindings for some of the XML Schemas defined by W3C.

This allows converting between XML (conforming to one of these schemas) and JSON in with pure JavaScript.

Supports the following schemas:

  • Atom_1_0
  • WS_Addr_1_0_Core
  • XHTML_1_0_Strict
  • XInclude_1_0
  • XLink_1_0
  • XSD_1_0
  • WSDL_2_0
    • WSDL_HTTP_2_0
    • WSDL_RPC__2_0
    • WSDL_SOAP_2_0

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

Package Sidebar

Install

npm i @terrestris/w3c-schemas

Weekly Downloads

10

Version

2.0.0

License

none

Unpacked Size

2.02 MB

Total Files

41

Last publish

Collaborators

  • jansule
  • annarieger
  • terrestris-info
  • marcjansen
  • kaivolland
  • dnlkoch
  • ahennr
  • buehner
  • hwbllmnn
  • lukaslohoff
  • mholthausen
  • jorzekowsky
  • simonseyock
  • hblitza
  • jweskamm