File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes text/plain & text/html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "text/plain & text/html" Watch "text/plain & text/html" New topic

text/plain & text/html

Grace Lo

Joined: May 03, 2001
Posts: 12
I am using XML and XSL with xalan to show a DOM tree from a browser.
I would allow users to pick eith HTML or plain format at run time.
By using response.setContentType("text/plain" );
or response.setContentType("text/html" );
seems look the same from my browser.
Do I need to write different XSL files like taking out all html tags?

I agree. Here's the link:
subject: text/plain & text/html
jQuery in Action, 3rd edition