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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: http://aspose.com/file-tools
subject: text/plain & text/html
Similar Threads
text/html & text/plain
Reading a text file on Linux machine
Using response.setcontenttype
Doubts regarding request and response objects.
problem with download dialog box