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

Reply via email to