Deputy's Coffeescript Implementation to generate DeXML