The browser doesn't understand it from what I can tell. I did this too and
had the same problem in JRUN, Resin and Orion. Generally you would have JSP
output XML so that you can feed that xml output to an XSLT engine which
would then translate it to HTML. Otherwise, your sending XML to the browser
and until MSIE 5.5 (or 6.0 is it?) and later versions of Netscape adobt XML
output, they wont render it. I think the HTML 5.0 standard..if it ever comes
out, will require xml syntax for html tags, and for browsers to render
xml..who knows though.
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Stanley Santiago
> Sent: Thursday, July 27, 2000 1:56 PM
> To: [EMAIL PROTECTED]
> Subject: XML syntax in JSP
>
>
> Hi,
>
> I am trying to use XML syntax in my JSP, running under Tomcat 3.1.
>
> Tomcat doesn't seem to understand and parse the XML tags and just
> writes to it to the browser.
> Has anyone tried this before ?
>
> Example:
>
> <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
>
> <! DOCTYPE root
> PUBLIC "-//Sun Microsystems Inc.//DTD JavaServer Pages Version 1.1//EN"
> "http://java.sun.com/products/jsp/dtd/jspcore_1_0.dtd">
>
> <jsp:root
> xmlns:jsp="http://java.sun.com/products/jsp/dtd/jsp_1_0.dtd">
>
> <html>
> <jsp:directive.page session="false"/>
> <body bgcolor="white">
> <font size=4>
> <ul>
> <li>HELLO WORLD !
> </li>
> </ul>
> </font>
> </body>
> </html>
>
> </jsp:root>
>
>
> Thanks,
> Stan
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets