Atom feed on the IS

I want to expose a datasource as an atom feed; has anyone tried to do this? Any suggestions? This would be similar to what Google feed server does. The idea is to be able to pass in dynamic queries, instead of having fixed input / outputs.