I need to use the result of javax.xml.transform.Transformer as an input to another transformer without saving the results to a file. It...
Reader input = new StringReader(xml);
StringWriter output = new StringWriter();
StreamSource source = new StreamSource(input);
StreamResult result = new StreamResult(output);
transformer1.transform(source1, result1);
transformer2.transform(source2, result2);
source
share