Re: XML parsing fails

"Trenton D. Adams" <[email protected]>
Newsgroups gmane.comp.jakarta.taglibs.user
Message-ID <[email protected]>
Actually, I'm a total dunce.  I'm using an older servlet/JSP, which 
still requires the "<%@ page isELIgnored="false"%>" directive.

Trenton D. Adams wrote:
> The following JSP fails.  Is there something basic that would be 
> causing the error "javax.servlet.jsp.JspException: Content is not 
> allowed in prolog"???
>
> FYI: Note that I'm pointing to a valid XML document on the W3C site.  
> I also create my own, making sure no characters of any kind exist 
> before the xml starting directive.
>
> <%--
>  Created by IntelliJ IDEA.
>  User: trenta
>  Date: 19-Jul-2007
>  Time: 6:53:18 PM
>  To change this template use File | Settings | File Templates.
> --%>
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
> <html>
> <head><title>Simple jsp page</title></head>
> <body>
> <!-- parse an XML document -->
> <c:import url="http://www.w3schools.com/xml/note.xml" var="xml"/>
> <x:parse doc="${xml}" var="doc"/>
> </body>
> </html>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.