logo       

Re: How to use markup builder as a big string: msg#00122

lang.groovy.user

Subject: Re: How to use markup builder as a big string

Hello Gary,

You can pass a StringWriter in the MarkupBuilder constructor.
That way, you'll be able to get the big string back for your own use.

--
Guillaume Laforge
http://glaforge.free.fr/weblog

Furash Gary wrote:
I've used MarkupBuilder to make an HTML document:
htmlOut = new MarkupBuilder();
htmlOut.html() {
...
}
Now I want to use htmlOut as a big old string, e.g.:
x.method(htmlOut);
where the method requires a string.
I'm missing something obvious here!
Gary





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

News | FAQ | advertise