cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject inject Document object into pipeline
Date Mon, 22 Sep 2003 09:27:39 GMT
Hi,

I want to inject an XML document i receive (via SOAP) into the cocoon 
pipeline. So far i have seen two ways of doing this

1. setup streamgenerator, then post the XML in the bodytext back to cocoon
2. create a custom generator

Solution one needs an extra http call to 
localhost/pathtostreamgeneratorpipeline, i would like to avoid this.
Solution two requires that I reparse the received XML into SAX events 
and create the document via startElement etc. This seems a bit tedious 
to me.

I would like to do something like

Document document = parser.parse(myXMLdocument);
//inject this document straight into the pipeline


Can i use the contenthandler object available to classes extending 
ComposerGenerator to do this? Or is there another class i should extend 
to do this?

Thanks
Jorg


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


Mime
View raw message