OGC Schemas project provides JAXB bindings for XML Schemas defined by the Open Geospatial Consortium (OGC).
OGC Schemas project provides JAXB and Jsonix bindings for some of the XML Schemas defined by OGC.
This allows converting between XML (conforming to one of these schemas) and Java objects in Java or JSON in JavaScript.
Supports the following schemas:
ARML_2_0CSW_2_0_2DC_1_1DCT
Filter_1_0_0Filter_1_1_0Filter_2_0GML_2_1_2GML_3_1_1GML_3_2_1GMLCOV_1_0SMIL_2_0SMIL_2_0_LanguageIC_2_0IC_2_1ISO19139_GCO_20070417ISO19139_GMD_20070417ISO19139_GMX_20070417ISO19139_GSR_20070417ISO19139_GSS_20070417ISO19139_GTS_20070417KML_2_2_0Atom_1_0xAL_2_0
OM_1_0_0OM_2_0OWC_0_3_1OWS_1_0_0OWS_1_1_0OWS_2_0Sampling_1_0_0Sampling_2_0SamplingSpatial_2_0SE_1_1_0SensorML_1_0_1SensorML_2_0SLD_1_0_0SLD_1_0_0_GeoServerSLD_1_1_0SPS_2_0SOS_1_0_0SOS_1_0_0_FilterSOS_2_0SWE_1_0_1SWE_2_0SWES_2_0WSN_T_1
WAMI_1_0_0WAMI_1_0_1WAMI_Common_1_0_1
WAMI_1_0_2WAMI_Common_1_0_0
WaterML_2_0WCS_1_0_0WCS_1_1WCS_2_0WFS_1_0_0WFS_1_1_0WFS_2_0WMS_1_0_0WMS_1_1_0WMS_1_1_1WMS_1_3_0WMS_1_3_0_ExceptionsWMSC_1_1_1WPS_1_0_0
var XLink_1_0 = require('w3c-schemas').XLink_1_0;
var OWS_1_1_0 = require('ogc-schemas').OWS_1_1_0;
var WPS_1_0_0 = require('ogc-schemas').WPS_1_0_0;
var context = new Jsonix.Context([XLink_1_0, OWS_1_1_0, WPS_1_0_0]);
var unmarshaller = context.createUnmarshaller();
unmarshaller.unmarshalFile("tests/WPS/1.0.0/execute-01.xml", function(result) {
test.equal("geom", result.value.dataInputs.input[0].title.value);
test.done();
});