Uso de espaços para nome no Groovy MarkupBuilder

Eu quero ter a seguinte saída:

<?xml version="1.0" encoding="UTF-8"?>
<structure:structuralDataRoot xmlns:register="http://www.test.ch/register/1" xmlns:structure="http://test.ch/structure/1" >
  <structure:tester>ZH</structure:tester>
  <structure:surveyYear>2001</structure:surveyYear>
  <structure:surfaceData>
    <structure:houseSurfaceData>
      <structure:creationDate>2001-01-01</structure:creationDate>
      <structure:localFarmId>
        <register:houseIdCategory>token</register:houseIdCategory>
        <register:houseId>token</register:houseId>
      </structure:localFarmId>
    </structure:houseSurfaceData>
  </structure>

Posso adicionar um espaço para nome a um xml como este:

xml.records('xmlns:structure' :"http://test.ch/structure/1" ...

Mas como posso criar um prefixo de namespace para um elemento xml? A única solução que encontrei foi esta:

tester('xmlns:structure' :"http://test.ch/structure/1", 'ZH')

Mas isso me dá a seguinte saída:

<tester xmlns:structure='http://test.ch/structure/1'>ZH</tester>

É sintático correto, mas não é agradável de ler quando você tem muitos nós.

questionAnswers(1)

yourAnswerToTheQuestion