If you have your XML string in the middle of an HTML file, you will need to
replace all <,>, and " with their HTML equivalents (ie. &lt;&gt;, and &quot;)

-Richard

At 12:49 PM 3/27/2002 -0500, you wrote:

>Hi,
>
>I asked for help in displaying xml in IE as it is and get little hint. Let
>me restate the problem.
>
>I want to be able to use an output method to directly output from servlet
>to browser an xml string with the xml tags preserved and the xml structure
>clearly presented. (The result should be the same as if one clicks on an
>.xml file).
>
>I tried to do response.setContentType("text/xml") before print out and
>didn't get what I want. (The result is the same as if I use ("text/html"),
>("text/plain"));
>
>Some Servlet/XML Guru out there please help.
>
>Thanks.
>
>Jian
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to