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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
