Output XML for Alfred

Exploring how to output the XML for Alfred here. I'm thinking it will make sense to set up some kind of presenter function, but I'm not sure how to test that.