google / cap-library

Common Alerting Protocol Library
Apache License 2.0
80 stars 30 forks source link

<references> must happen before <info>? #61

Open junghao opened 4 years ago

junghao commented 4 years ago

We got "automated error message from Google" which indicated <references> returned by our cap service has invalid content.

Error details: cvc-complex-type.2.4.a: Invalid content was found starting with element 'references'. One of '{"urn:oasis:names:tc:emergency:cap:1.2":info, WC["http://www.w3.org/2000/09/xmldsig#"]}' is expected.

After some random copy-pastes I found that <references> must happen before <info> otherwise the validator will not happy. Is this in CAP spec or it's just a bug?

Thanks.