Arsalan,
Try either
out.println (transformedDoc.asXML());
or use the XMLWriter and OutputFormat classes for better control.
Is this XHTML you are returning? If raw XML, make sure your browser can display it ok - try writing transformedDoc to a file and open it from there.

Regards,
Thomas.


At 15:26 18/06/2001 +0000, Lodhi, arsalan wrote:
Does anyone know how can we send the document back to browser if I am using servlet - I've done this:
 
  response.setContentType("text/html");
  PrintWriter out = response.getWriter();
  out.println(transformedDoc);
  out.close();

but out.println(String ) takes string - how can i send the transformed (from xml - html) document back to browser
 
thanks
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
_______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to