Hi Erich! To get a String into a org.w3c.Document you could do the following: String src = "<?xml version=\"1.0\" ..... "; DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); org.w3c.dom.Document doc = db.parse(new java.io.ByteArrayInputStream(src.getBytes())); Greetings 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: Mittwoch, 29. August 2001 21:51 An: [EMAIL PROTECTED] Betreff: Trying to transform XML to XSL:FO so I can convert it? OK, finally got the FopServlet to work, thanks for the help!!! My next problem is that my XML is not in a file. I will be reading it in from my database (where its stored as a blob) into a large String. Next I need to do something like an XSLTransform.transform to apply my XSL to the XML. What results should be my .FO file. Now I have tried this where the XML and XSL are files and programatically build the .FO file and this works but I need help with the following things: 1) Is XSLTransform.transform the best class method to use? 2) XSLTransform.transform accepts for the XML input either a xmlSource String or a org.w3c.dom.Document .... what I have is the entire XML in a String. Whats the best way to turn it into a Document? TIA Erich Kilmer --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]