Hello all...

What I am trying to do is iterate through an already generated array in a
JSP page, and each pass through the array, I want to parse an XML document
based upon a dynamic URI. Problem is, XML's rules only allow for one root
element to exist, and once the second interation starts, it effectively tries
to have two, consequently throwing an error.

Is there a way to dump the parsed document from memory once I am done with
it before each pass through the array? Here is the code I am trying to use:

<%@ page contentType="text/html;charset=windows-1252"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.io.*" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/xtags-1.0" prefix="xtags"

String tagLibUri = "";
File dataDir = new File("/xmlDocs/");
File[] listing = dataDir.listFiles();

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
Hello World

for (int x=0; x < listing.length; x++){
tagLibUri = "/xmlDocs/" + listing[x].getName();

<xtagsarse uri="<%=tagLibUri%>"/>
<a href="XMLParse.jsp?xmlFile=<%=listing[x].getName()%>"><%=listing[x].getName()%></a><br>


I have tried to use out.flush, and out.clearBuffer, but neither will prevent
the error.

Any ideas/suggestions would be greatly appreciated!

Erik Stell