Oops, I wish I had been playing closer attention to the list.  I would have posted this sooner.  I was trying to get this to work a while back.  Here's how someone in the cocoon chat room showed me how to do it:

    // Get our xml string that tells our totals
    var output = new Packages.java.io.ByteArrayOutputStream();
    cocoon.processPipelineTo("searchTotals", {where_definition:where_definition}, output);
   
    // build a document to parse
    var parser = cocoon.getComponent(Packages.org.apache.excalibur.xml.dom.DOMParser.ROLE);
    var sr = new Packages.java.io.StringReader(output.toString())
    var is = new Packages.org.xml.sax.InputSource(sr);
    var doc = parser.parseDocument(is);
    var context = Packages.org.apache.commons.jxpath.JXPathContext.newContext(doc);

    // do an xpath query to get some info  
    var developmentCount = context.getValue("//sql:developments[1]");

Is this what you guys are looking for?

Brian


[EMAIL PROTECTED] wrote:

Found some hints on that here: http://wiki.apache.org/cocoon/EndorsedLibsProblem

I'll post the results.

Thanks so far.

Regards
Holger

[EMAIL PROTECTED] schrieb am 06.02.2006 21:53:29:

>
> I get an error:
> javax.xml.transform.dom.DOMResult.getNextSibling()Lorg/w3c/dom/Node;
>
> Have you seen that one, too? Any help appreciated.
>
> Regards
> Holger
>
> [EMAIL PROTECTED]
> schrieb am 06.02.2006 09:38:29:
>
> > What I use to get XML data (DOM) from a pipeline from flowscript is :
> >
> > var pipe = cocoon.createObject(org.apache.cocoon.components.flow.
> > util.PipelineUtil);
> > var doc = pipe.processToDOM("some/pattern", {});
> >
> > see PipelineUtil javadoc for other usages.
> >
> > laurent
> >
> >
> > 2006/2/6, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> > >
> > > Hi,
> > >
> > > I am trying to extract data from a XML source (XML file or
> Cocoon pipeline)
> > > for use in  a flowscript (actually it's an XML file containing quiz
> > > questions and the correct answers. I need to extract the answersto test if
> > > the user selected the correct choice).
> > >
> > > Any ideas?
> > >
> > > Regards
> > > Holger
> >
> >
> > --
> > <a href="" class="moz-txt-link-rfc2396E" href="http://in-pocket.blogspot.com">"http://in-pocket.blogspot.com">http://in-pocket.blogspot.com
> > - Mobile world, technology and more</a>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >