Sensor Model Language (SensorML)
SensorML defines concepts and XML encodings for descriptions of sensors, processes and systems. SensorML is used in several OGC SWE web services (e.g. SOS, SPS, SAS).
Compiling SensorML with XmlBeans
If you want to compile the sensorML.xsd schema into Java classes with XmlBeans, you have to do a small change in the schema. Open the
file and navigate to the definition of
. This type is an extension of
, which is an extension of
. That is, why every
element with type
also contains a second
element, which is of type
elements defined in the
leads to compiler errors when compiling the XmlBeans created Java classes.
. The easiest way to get around with that, is to change the type of the
defined in the
at line 24 from
to "gml:location". Although this keeps back the restriction to
, you can use these types and the schema could be compiled with XmlBeans.
Please write, if you know a better solution!
Validating SensorML with Altova XmlSpy
For those developers, who are using XmlSpy 2005: If you comment out the
xs:element name="parameter" type="swe:DataComponentPropertyType" maxOccurs="unbounded"
element in line 298, the validation of schema
should work! -- ChristophStasch
- 19 Jun 2007
To validate all SensorML schema with XmlBeans
2005 rel 3, you also have to outcomment the
element in the
. This is quick and dirty and I will try to see, whether there are better workarounds for this issue. Nevertheless the whole schema do validate for now... -- ChristophStasch
- 23 Jun 2007