The ellipsis I included in place of lines of code is where I modify the DOM. Then I need to get it back out as standard (unpretty) XML.
All of the doc wants it pretty and that seems to be straightforward - the default even. It seems like I should be able to get it out of the DOM without shenanigans.
I think I am missing something obvious.
> Not sure what you mean... If you want to unprettify xml, you can do:
>
> def prettyxml = '''<a>
> | <b>c</b>
> |</a>'''.stripMargin()
>
> String uglyxml = new groovy.xml.StreamingMarkupBuilder().bind {
> mkp.yield new XmlSlurper().parseText( prettyxml )
> }
>
> Hope this helps!
>
> Tim