logo       

RE: How to use markup builder as a big string: msg#00140

lang.groovy.user

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

Thanks.

-----Original Message-----
From: Guillaume Laforge
[mailto:glaforge-yCVjj/EcxBJg9hUCZPvPmw@xxxxxxxxxxxxxxxx]
Sent: Sunday, November 21, 2004 1:51 PM
To: user-i9PBDF1N6cxnkHa44VUL00B+6BGkLq7r@xxxxxxxxxxxxxxxx
Subject: Re: [groovy-user] 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