cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rui Alberto L." Gonçalves <rui-l-goncal...@ptinovacao.pt>
Subject custom generator.
Date Tue, 28 Oct 2003 20:36:48 GMT
Hi all,
I'm having some difficulties writing a custom generator.
Somewhere in the generate() method I have a String that
contains valid XML! I want to send it to the pipeline!
Does anyone know how to do this?

I tryed
--------------------------
public class MyRequestGenerator
  extends ServiceableGenerator

.......
org.xml.sax.helpers.XMLReaderAdapter
      reader_adpter = new org.xml.sax.helpers.XMLReaderAdapter();

super.setContentHandler((org.xml.sax.ContentHandler)reader_adpter);

reader_adpter.parse(new org.xml.sax.InputSource(
new java.io.CharArrayReader(str.toCharArray()));
----------------
but without success! Any help will be appreciated. Thanks.

Rui

-- 
Rui Alberto L. Gonçalves <rui-l-goncalves@ptinovacao.pt>
PT Inovação


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


Mime
View raw message