Re: parsing xml in flowscript.

2005-05-02 Thread Aurélien DEHAY
Ugo Cei wrote: [snip] Because a ByteArrayOutputStream is not an InputStream. Try; var is = new ByteArrayInputStream(stream.toByteArray()); parse(is); It works, thank you. Regards. -- Aurélien - To unsubscribe, e-mail: [EMAIL PR

Re: parsing xml in flowscript.

2005-05-01 Thread Ugo Cei
Il giorno 01/mag/05, alle 23:06, Aurélien DEHAY ha scritto: I'm trying to parse an xml stream from a pipeline result in flowscript. I've got the following code: var stream = new java.io.ByteArrayOutputStream; cocoon.processPipelineTo("etape2", {"url": url}, stream ); var document = DocumentBuilde

parsing xml in flowscript.

2005-05-01 Thread Aurélien DEHAY
Hi list. I'm trying to parse an xml stream from a pipeline result in flowscript. I've got the following code: var stream = new java.io.ByteArrayOutputStream; cocoon.processPipelineTo("etape2", {"url": url}, stream ); var document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(