cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Pruy <Rainer.P...@Acrys.COM>
Subject Re: custom serializer
Date Wed, 13 May 2009 09:21:02 GMT
Hi sac,
probably you might start out with looking at the implementation of plain XMLSerializer[1].
There it should be obvious how SAX events get serialized to String
(actually there they will get streamed out to an OutputStream, but it is a start for sure....

I guess, you would try, serializing the SAX events to a StringBuffer or alike
, go processing that String and finally sending the result string to the request output stream....

Rainer

[1] http://cocoon.apache.org/2.1/userdocs/xml-serializer.html

Joerg Heinicke schrieb:
> The idea is to have a pipeline that creates the ZIP file. This would be
> the one that matches the user's request. In the XML for the ZIP archive
> serializer you list the files you want to be included in the ZIP file.
> By using cocoon:/ pseudo protocol this can be another (maybe internal)
> pipeline. The docu [1] has such an example: foo.html is pulled out of
> another pipeline.
> 
> Joerg
> 
> [1] http://cocoon.apache.org/2.1/userdocs/ziparchive-serializer.html
> 
> On 12.05.2009 21:02, Saeid Bashir wrote:
>> I was not able to undrestand the code i want to know how to put xml
>> in to string and encode it and display the result
> 
> 
> On 12.05.2009 14:17, Joerg Heinicke wrote:
>> In which way not helpful? Is ZIP the wrong compression for you or did
>> you just not get it to work?
>>
>> Joerg
>>
>> On 12.05.2009 07:53, saeid itune wrote:
>>> Basically i have xml file which it will be compressed and the result
>>> will be
>>> displayed to the user in compressed format. i want to get whole xml
>>> file as
>>> a string and pass it to function which will compress the string and
>>> returns
>>> the result as string. the result will be displayed to the user.
>>>
>>> ZipArchiveSerializer example was not helpfull for me
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 

-- 
Rainer Pruy
Geschäftsführer

Acrys Consult GmbH & Co. KG
Untermainkai 29-30, D-60329 Frankfurt
Tel: +49-69-244506-0 - Fax: +49-69-244506-50
Web: http://www.acrys.com -  Email: office@acrys.com
Handelsregister: Frankfurt am Main, HRA 31151

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message