Thread: will the real stationXML please stand up

Started: Oct. 20, 2011, 1:40 p.m.
Last activity: Oct. 21, 2011, 11:29 a.m.
Topics: Web Services
Philip Crotwell
Oct. 20, 2011, 1:40 p.m.
Hi

So two of the three stationXML examples on the SCEC website are
invalid. IMHO, a lot of the value of having a schema is lost if it
isn't used for validation, at least occasionally.

I have to say that writing code to deal with StationXML is made more
complicated than it needs to be when the documentation, the xschema,
and the examples+web services are all slightly incompatible. It would
be really nice if the agreement between these three could be tightened
up a bit, especially if stationxml based web services are going to be
"the" way to programatically access metadata at the DMC in the future.

Apologies if the web services list is not the right place to post
stationXML comments.

...sigh...
Philip

CI_stations.xml:
--------------------------
The following errors were found:
TYPE LOC MESSAGE
Validation 20, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 35, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 50, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 65, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 80, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 95, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 110, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 125, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 140, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 155, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 170, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 185, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 200, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 215, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 230, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 245, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 260, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 275, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 290, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 305, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 320, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Terminal 0, 0 There have been too many errors, please check that you
have not submitted the instance and schema the wrong way round.



CI_BAR_resp.xml:
-------------------------------
The following errors were found:
TYPE LOC MESSAGE
Validation 18, 20 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'NumberChannels'. One of
'{"http://www.data.scec.org/xml/station/":TerminationDate,
"http://www.data.scec.org/xml/station/":NumberRecorders,
"http://www.data.scec.org/xml/station/":TotalNumberChannels,
"http://www.data.scec.org/xml/station/":SelectedNumberChannels,
"http://www.data.scec.org/xml/station/":Dataless,
"http://www.data.scec.org/xml/station/":ExternalReport,
"http://www.data.scec.org/xml/station/":Channel}' is expected.
Validation 35, 26 cvc-complex-type.2.4.a: Invalid content was found
starting with element 'SensitivityUnits'. One of
'{"http://www.data.scec.org/xml/station/":SensitivityValue}' is
expected.
Validation 15864, 26 cvc-complex-type.2.4.a: Invalid content was
found starting with element 'SensitivityUnits'. One of
'{"http://www.data.scec.org/xml/station/":SensitivityValue}' is
expected.
Validation 42961, 26 cvc-complex-type.2.4.a: Invalid content was
found starting with element 'SensitivityUnits'. One of
'{"http://www.data.scec.org/xml/station/":SensitivityValue}' is
expected.
Validation 43552, 17 cvc-complex-type.2.4.b: The content of element
'Response' is not complete. One of
'{"http://www.data.scec.org/xml/station/":StageSensitivity}' is
expected.
Validation 45159, 17 cvc-complex-type.2.4.b: The content of element
'Response' is not complete. One of
'{"http://www.data.scec.org/xml/station/":StageSensitivity}' is
expected.
Validation 46766, 17 cvc-complex-type.2.4.b: The content of element
'Response' is not complete. One of
'{"http://www.data.scec.org/xml/station/":StageSensitivity}' is
expected.
Validation 47906, 26 cvc-complex-type.2.4.a: Invalid content was
found starting with element 'SensitivityUnits'. One of
'{"http://www.data.scec.org/xml/station/":SensitivityValue}' is
expected.
Validation 48159, 26 cvc-complex-type.2.4.a: Invalid content was
found starting with element 'SensitivityUnits'. One of
'{"http://www.data.scec.org/xml/station/":SensitivityValue}' is
expected.
Validation 62655, 26 cvc-complex-type.2.4.a: Invalid content was
found starting with element 'SensitivityUnits'. One of
'{"http://www.data.scec.org/xml/station/":SensitivityValue}' is
expected.