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();
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
