Using this code:
xml = new groovy.xml.MarkupBuilder() xmldata = xml.Plugins(nextid: '10') { Target(name: 'default.auth') { Port(protocol: 'https') { mkp.yield 8080 } } }
Generates this output:
<Plugins nextid='10'> <Target name='default.auth'> <Port protocol='https'>8083</Port> </Target> </Plugins>
But is there a way to generate output like this with double quotes?
<Plugins nextid="10"> <Target name="default.auth"> <Port protocol="https">8083</Port> </Target> </Plugins>
source share