Name: Anonymous 2011-05-14 15:13
org.xml.sax.SAXParseException: Premature end of file.
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
<html>
<head>
<title>hw10</title>
</head>
<body>
<h1>Customer Information</h1>
<c:import var="xmlFile" url="HW10.xml" />
<x:parse var="myDoc" xml="${xmlFile}" />
<table border="1">
<tr>
<th>Customer Number</th>
<th>First Name</th>
<th>Last Name</th>
<th>Address</th>
<th>City</th>
<th>State</th>
<th>Zipcode</th>
<th>Balance</th>
</tr>
<x:forEach select="$myDoc/CUSTOMERS/Customer" var="cust">
<tr>
<td><x:out select="$cust/CustNo" /></td>
<td><x:out select="$cust/CustFirstName" /></td>
<td><x:out select="$cust/CustLastName" /></td>
<td><x:out select="$cust/CustStreet" /></td>
<td><x:out select="$cust/CustCity" /></td>
<td><x:out select="$cust/CustState" /></td>
<td><x:out select="$cust/CustZip" /></td>
<td><x:out select="$cust/CustBal" /></td>
</tr>
</x:forEach>
</table>
</body>
</html>