I\'m trying to generate a PDF document using FOP and Java.
I receive the XML as a string and not as a file.
How can I convert this XML string to an XML input str
Use ByteArrayInputStream:
String S = ...; InputStream source = new ByteArrayInputStream(S.getBytes(encoding))