tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wim Goossens" ...@wg.be>
Subject xml parsing difference 1.1 vs 1.0
Date Fri, 06 Feb 2004 14:05:37 GMT
When I use the 1.1 standard and jstl jars, it takes ages to 
complete an xml parsing. With standard 1.0 I get an
immediate result (for 300 records, for 20 records there is no problem).

What could i be doing wrong ?

(i am using tomcat 5.0.18 , j2sdk1.4.2_03)

This is my jsp code :

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" %>

........

(jx.result is a string containing the xml to parse)

<x:parse varDom="dom" xml="${requestScope['jx.result']}" />
<x:forEach var="country" select="$dom/countrys/country">
<x:set var="id" select="string($country/id/text())"/>
<x:set var="description" select="string($country/description/text())"/>
<x:set var="countrycode" select="string($country/countrycode/text())"/>

......

</x:forEach>
<c:remove var="dom"/>

Regards,
Wim


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message