cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject Re: Injecting a String XML document into a pipeline
Date Sat, 04 Jun 2005 20:41:03 GMT

Zbigniew Bomert OP wrote:

> function getPipeline(uri, viewData) {
>      var pipelineUtil =
> cocoon.createObject(Packages.org.apache.cocoon.components.flow.util.PipelineUtil);
>      var result = pipelineUtil.processToDOM(uri, viewData);
>      cocoon.disposeObject(pipelineUtil);
>      return result;
> }

Neat!

> 
> myxml contains dom xml.

Then your solution works ofcourse. Only thing is that it builds a DOM
representation of the data, which could become memory-problematic for
large documents. Other than that, i like it !

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