Is "document" a dom4j Document or a W3C DOM Document object? I guess if the code compiles then it must be a W3C DOM document.
 
What does your crash look like? You probably want to talk to your DOM vendor (IBM's XML4J? or the Xerces / Crimson list).
 
James
----- Original Message -----
Sent: Wednesday, June 20, 2001 5:45 AM
Subject: [dom4j-user] any idea ?"

Can anyone verify Is this the right way of getting a document using DOMSource ?
If yes then why at trasnsformer.transform(source, new StreamResult(out)); it get crash and gives an error of Source not available.
 
 
 
Document document = appEesm.process("DAJAMES");
DOMSource source = new DOMSource(document);
     
  response.setContentType( "text/html" );
  PrintWriter out = new PrintWriter( new  BufferedWriter( response.getWriter() ) );
  transformer.transform( source, new StreamResult( out ) ) ;
  out.flush();
  out.close();
 
arsalan
 


Get your FREE download of MSN Explorer at http://explorer.msn.com

_______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to