On Mon, 25 Nov 2002, smallufo wrote: > I have a big XML file (about 500Kbytes) , > while using general > <x:parse var="doc"> > <c:import url="/xxx.xml"/> > </x:parse> > <x:out select="$doc//xxx"/> > It costs a lot of time (about 12~14 seconds) to select nodes. > > I wonder if varReader can improve the efficiency, I tried but cannot > find how to combine varReader with XML parsing, can somebody give me a > demonstration ?
<x:parse> accepts a Reader, so you can simply write <c:import url="/xxx.xml" var="xml" /> <x:parse var="doc" xml="${xml}" /> -- Shawn Bayern "JSTL in Action" http://www.manning.com/bayern -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>