cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricardo Trindade" <Ricardo.Trind...@myrealbox.com>
Subject RE: writing custom serializer and generator
Date Mon, 17 Jun 2002 16:37:40 GMT
could you point me to an example of converting a string to SAX events ? (my
string contains well formed XML)

thanks
Ricardo

-----Original Message-----
From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
Sent: segunda-feira, 17 de Junho de 2002 14:57
To: cocoon-users@xml.apache.org
Subject: RE: writing custom serializer and generator


> From: Ricardo Trindade [mailto:Ricardo.Trindade@myrealbox.com]
>
> Hi,
>
> 	I'm writing a custom serializer and generator. I've already
written some
> custom actions, which was easy.
> 	I have libraries that generate XML, and I just want my generator
to get
> it
> from there. However, I don't understant how to define the output of
the
> generator. I've looked at FileGenerator.java, and there's a step where
a
> SourceResoler is used to convert from the filename to a Source. I
already
> have my xml in a string, just want to send it to the generator output.

You will have to covert your String into SAX XML events, Cocoon event
pipeline does not work with non-XML formats.

Use XML parser for it.

Vadim

>
> Thanks for any help
> Ricardo


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message