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
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
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(