> Please don't do that! I've seen too many developers who made mistakes
> here because they didn't get the String-to-byte conversion right. After
> all, this will result in two conversions, once String-to-byte and then
> byte-to-String. That's unnecessary.
>
> This is the correct way, if you want to get a JAXP Source object:
>
> String xml = someXMLFromSomewhere;
> Source src = new StreamSource(new java.io.StringReader(xml));
>
That did it, thank you very much!
--
View this message in context:
http://www.nabble.com/How-to-create-XML-Source-from-Java-String--tf4600917.html#a13169396
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]