I want to convert the stream result output to string since I want to use it in Junit I think that I need to use the string writer but Im not sure how exactly to use it.
StreamResult result = new StreamResult(new File("C:\file.xml"));
transformer.transform(source, result);
Thanks Fedor
See Question&Answers more detail:os