[webservices] will the real stationXML please stand up

Ellen Yu eyu at gps.caltech.edu
Thu Oct 20 11:03:46 PDT 2011


Hi Phillip,

As part of the stationXML working group I want to tell you we are receiving
your comments and processing them.  It's true the examples are not up to
date with the schema and we are working on getting them updated.  Maybe we
should take those down in the meantime.  I believe everyone who is working
on the schema is on this list so this is an appropriate place to post.


Ellen


On Thu, Oct 20, 2011 at 10:40 AM, Philip Crotwell <crotwell at seis.sc.edu>wrote:

> 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.
> _______________________________________________
> webservices mailing list
> webservices at iris.washington.edu
> http://www.iris.washington.edu/mailman/listinfo/webservices
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iris.washington.edu/pipermail/webservices/attachments/20111020/a3d91ba4/attachment-0001.htm>


More information about the webservices mailing list