|
Why not just use IRB in the form of RHTML-type files to serve up XML content? It's easy just to copy and paste the "sample" xml file that the receiver is expecting and then "punch in" your content into the appropriate attributes and content elements using <%=%> tags (or loops just like in normal RHTML files). All you have to do is make sure that the content types are correctly on the response object. I wrote about this a little on this blog too: http://www.misuse.org/science/2007/11/07/xml-via-rhtml-for-rails/
I've appreciate some feedback on what I'm missing - it seems like we're making this harder than it needs to be?
|