logo       

Re: Missing StreamingMarkupBuilder: msg#00120

lang.groovy.user

Subject: Re: Missing StreamingMarkupBuilder

I note that someone else has asked this before, but I can't see an answer.

From beta-6 to beta-7, the class org.codehaus.groovy.sandbox.markup.StreamingMarkupBuilder seems to have disappeared. Any ideas on its replacement?

In my case I'm just trying to create a simple XML (application.xml) file on disk...

markup = {
application() {
mkp.declareAlias(display: "display-name")
display("MyApp")
module() {
ejb("myapp-ejb.jar")
}
}
}

builder = new org.codehaus.groovy.sandbox.markup.StreamingMarkupBuilder()
doc = builder.bind(markup)

fos = new java.io.FileOutputStream("someFilepath.xml")
fos << doc

I've tried groovy.xml.MarkupBuilder() but that gives a groovy.lang.MissingMethodException:

[exec] Exception in thread "main" groovy.lang.MissingMethodException: No signature of method com.aegeus.intercert.agent.builder.JBossIntegratedAgentBuilder$_createApplicationXml_closure6.application() is applicable for argument types: (com.aegeus.intercert.agent.builder.JBossIntegratedAgentBuilder$_createApplicationXml_closure6_closure12) values: [com.aegeus.intercert.agent.builder.JBossIntegratedAgentBuilder$_createApplicationXml_closure6_closure12@18352d8]

Any ideas?

Regards,

Sean

--
Dr. Sean Radford, MBBS, MSc
sradford-QOAqXozMTYgdemNxvH84G7VCufUGDwFn@xxxxxxxxxxxxxxxx
http://bladesys.demon.co.uk/



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise