To create a new builder like a the MarkupBuilder or AntBuilder, you have to implement in java (in groovy later too) a subclass of the groovy.util.BuilderSupport class. The main methods to be implemented are the following : protected abstract void setParent(Object parent, Object child); protected abstract Object createNode(Object name); // a node without parameter and closure protected abstract Ob