Please forgive me if this is not the right place to ask. I just didn't
find a place to post my questions but here.
I'm currently using your library to handle Cap Alerts (works very
well). I have only one problem. When I create a new CapXmlParser
object with validation turned on, and then, try to parse any alert
from the NOAA site (http://alerts.weather.gov/cap/us.php?x=0).I get
the following exception:
cvc-pattern-valid: Value '' is not facet-valid with respect to pattern
'\s*[^\s,&<]+,[^\s,&<]+,\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d[-,+]\d\d:\d
\d(\s+[^\s,&<]+,[^\s,&<]+,\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d[-,+]\d\d:\d
\d)*\s*' for type '#AnonType_referencesalert'.; cvc-type.3.1.3: The
value '' of element 'references' is not valid.
If I understand correctly, the xsd is requiring a value on the
references tag. If no references are intended, the <references> tag
must not be included. However, the NOAA site is throwing alerts with
empty value <references> tag.
My question is: how can I enable the google cap library to handle the
NOAA alerts without having to turn off the validation??
Thanks a lot in advance.