Hello Erich! You can use the transformer: TransformerFactory tf = TransformerFactory.newInstance(); Transformer t = tf.newTransformer(); // Without XSL -> 1 to 1 transforming ByteArrayOutputStream out_str = new ByteArrayOutputStream(); t.transform(out, out_str); String xml = out_str.toString(); // ?? or "= new String(out_str.toByteArray());" Ciao Christian __________________________________________________ DIRON Wirtschaftsinformatik GmbH & Co. KG Christian Beer ([EMAIL PROTECTED]) Daimlerweg 39-41 Tel. : +49(251)979-200 48163 Muenster Fax : +49(251)979-2020 Germany Email: [EMAIL PROTECTED] -----Ursprüngliche Nachricht----- Von: Kilmer, Erich [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 30. August 2001 16:29 An: '[EMAIL PROTECTED]' Betreff: My FO data is in a Document ... how to get it into a String? Hello again, Hope this question is OK for this group. I think that it is since it is a question on org.apache.fop.tools.xslt.XSLTransform. The problem is that I am trying to do everything in memory. The XML and resulting FO data are never on disk. The call I am trying to make is: org.apache.fop.tools.xslt.XSLTransform.transform( org.org.w3c.dom.Document in, InputStream xsl, org.w3c.dom.Document out); When I call XSLTransform.transform I have my XML in a org.w3c.dom.Document (thanks Christian!) and I have the XSL in an InputStream. The call results in the transformed data in the out Document. Does anyone know how to get the data from the out Document to a String? Tried a out.toString() but that doesn't work. TIA for the help! Erich Kilmer Bell+Howell (919)767-7599 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]