Common Alerting Protocol (CAP) Parser

[UPDATE: The demo site is no longer up]

CAP is an XML standard that is used to send alert messages around between government agencies. There are a few sources of ATOM/CAP feeds out there from the Weather Service and USGS, so I have been experimenting with parsing these feeds with Drupal's FeedAPI. There is still much work to be done with handling some of the unique namespaces that show up in these feeds, but it is a start.

And I attached some alpha quality code. It's essentially the Common Syndication Parser hacked to work with CAP 1.1 - Just unzip it and put it in your FeeedAPI module folder. You can then enable it as a module and use it as a parser. This is experimental code so do not use it in a production environment. Hope to have it or something like it contributed to the FeedAPI project.

AttachmentSize
parser_common_alert.zip7.71 KB

Comments

Demo No Longer Up

Since creating our demo things have changes a bit. We'll keep this up for historical purposes but there are now better ways to get this done in Drupal using Feeds and custom code.

Post new comment

The content of this field is kept private and will not be shown publicly.
By submitting this form, you accept the Mollom privacy policy.