Re: Calabash: Writing to input ports - "Attempt to create two writers for the same input"

I solved this problem already, I used the writeTo(String port, XdmNode node)
and readFrom(String port) methods on the XPipeline.

XPipeline xPipeline = xProcRuntime.load(xplFilePath);
XdmNode inputXml =
xProcRuntime.getProcessor().newDocumentBuilder().build(new
File("xproc/12345.rdf"));
xPipeline.writeTo("source", inputXml);
xPipeline.run();

XdmNode xdmNode = xPipeline.readFrom("result").read();

Regards,

Frank Scholten

Received on Friday, 16 October 2009 10:51:06 UTC