cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: help needed (OWQL)
Date Tue, 10 Aug 2004 02:10:36 GMT
J.Pietschmann wrote:
> Halgurt Mustafa-Ali wrote:
> 
>> I am tryong to itegrate OWQL in to the cocoon framework, I implemented 
>> a Transformer for that purpose (see the Attachment please).
>> The OWQL tool has a method printAnswerAsXML (String reqxml, 
>> PrintWriter pw)
>>
>> do you have an idea how can I convert pw to SAX events?
> 
> 
> Though job. The lazy way would be to use a PipeStream to
> pipe the content written to the PrintWriter to a SAX parser
> running in another thread. That's likely to course trouble
> in some circumstances.

I don't see anything lazy about this :)

IMHO, lazy way is to use StringWriter and then parse resulting text with 
SAX parser using one of the Cocoon's Util classes.

Vadim

Mime
View raw message