This is my first question on SO so be gentle. I am writing some groovy code to generate xml using MarkupBuilder. The problem is that I have to generate lots of similar xml for lots of different product types and the code will become huge if I cannot parameterize it. Showing you might help you understand better:This is my first question on SO so be gentle. I