From: Farrel Lifson Date: 2011-03-07T03:53:04+09:00 Subject: Re: RCAP 0.4 Released On 6 March 2011 19:40, andrew mcelroy wrote: > Does this simply do a xml to json conversion? I see in the api spec this > appears to be the case. > http://en.wikipedia.org/wiki/Common_Alerting_Protocol The JSON addition is purely for my own usage. I read and parse the CAP message and store it in an internal collection of Ruby objects from that I can generate out a JSON or XML representation. > Also, can this gem pull in xml data from other sources using cap and repeat > it back to json? If the source is 1.1 compliant it should not be a problem. > Also, is this something you would want to put into a background process/ > queue system? > In otherwords, how performant is it? I have not done any performance testing. I am using REXML which is not the fastest XML API out there. I am planning on a migration to Nokogiri in the future. > When you say this only supports version 1.1, how is that different from > version 1.0? > Is it worth supporting 1.0. The differences were not major as far as I can recall. I'm planning on adding support for CAP 1.2 first before I add in support for 1.0. Farrel -- Aimred - Ruby Development and Consulting http://www.aimred.com