Hi,

I solved this problem through using JDOM and then converting the JDOM document 
to SAX events.

you can have a look at the code.

Thanks,
Halgurt
>X-Sieve: CMU Sieve 2.2
>Delivered-To: [EMAIL PROTECTED]
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>list-help: <mailto:[EMAIL PROTECTED]>
>list-unsubscribe: <mailto:[EMAIL PROTECTED]>
>list-post: <mailto:[EMAIL PROTECTED]>
>Delivered-To: mailing list [EMAIL PROTECTED]
>X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE
>X-Spam-Check-By: apache.org
>Date: Tue, 10 Aug 2004 21:06:48 +0200
>From: "J.Pietschmann" <[EMAIL PROTECTED]>
>User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626)
>X-Accept-Language: en-us, en
>MIME-Version: 1.0
>To: [EMAIL PROTECTED]
>Subject: Re: help needed (OWQL)
>Content-Transfer-Encoding: 7bit
>X-Virus-Checked: Checked
>X-Virus-Scanned: by amavisd-new/sophie/sophos at 
mailin1.informatik.tu-muenchen.de
>X-Spam-Checker-Version: SpamAssassin 2.64-tuminfo_0 (2004-01-11) on  
mailin1.informatik.tu-muenchen.de
>X-Spam-Level: 
>X-Spam-Status: No, hits=-4.9 required=7.0 tests=BAYES_00 autolearn=ham  
version=2.64-tuminfo_0
>X-Virus-Scanned: by amavisd-new/sophie/sophos at 
mailrelay1.informatik.tu-muenchen.de
>
>Vadim Gritsenko wrote:
>>> 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.
>
>I always thought I was lazy. But then:
> >> running in another thread. That's likely to course trouble
>                                                ^^^^^^
>I thought I even spell-checked the message before sending!
>
>J.Pietschmann
>

Attachment: OWQLTransformer.java
Description: OWQLTransformer.java

Reply via email to