Skip to content

Instantly share code, notes, and snippets.

@rnkoaa
Created November 18, 2013 17:01
Show Gist options
  • Save rnkoaa/7531356 to your computer and use it in GitHub Desktop.
Save rnkoaa/7531356 to your computer and use it in GitHub Desktop.
A simple example of creating xml in groovy using streaming markup builder.
StreamingMarkupBuilder builder = new StreamingMarkupBuilder()
builder.encoding = 'UTF-8'
String filterSoapMessage = builder.bind {
mkp.xmlDeclaration()
'root'(){
}
}
filterSoapMessage.toString()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment