|
next
|
Subject: Java XMLPipeline result to string Author: Alex Smirnov Date: 09 Aug 2011 10:28 AM
|
Hello!
I generate java code from XMLPipeline, and I get something like that
public boolean init() throws Exception {
// Create all the objects required for the pipeline
convertToXML = new ConvertToXML("Convert to XML", getEnvironment());
convertToXML.setAdapter("edi:decode=no:field=no:tbl=no:typ=no:chr=UNOE");
XSLTOperator = new XSLTOperation("XSLT operator", ContentType.UNKNOWN, getEnvironment());
edge_2 = new EdgeImpl("edge_2", getEnvironment(), DataType.NODE, DataType.DOCUMENT);
// Connect all the operation objects with edge objects.
convertToXML.setInputUrl("edi__1", DataType.NONE);
convertToXML.addOutputEdge(edge_2);
XSLTOperator.setScriptUrl("ORDERS.xsl");
XSLTOperator.addInputEdge(edge_2);
XSLTOperator.setOutputUrl("result.xml", DataType.ANY);
return true;
}
I this case, I can set only path to input and output file.
But I need set java String with input file content and get result to string.
String In = "UNB+UNOE:3+....UNZ+1+1'";
String Out = null;
and for example:
convertToXML.setInputUrl(In, DataType.NONE);
XSLTOperator.setOutputUrl(Out, DataType.ANY);
Please help me with this
|
|
|