i'm afraid you lost me here. Here is the way i parse xml (using the jaxp):

  InputSource input = Resolver.createInputSource(new
File(myTemplateFileString));
  doc = XmlDocument.createXmlDocument(input,false);

This is done in the constructor of my 'template'-class. So each time i parse
the xml, i have file-io. Is there a 'workaround' around this?

> -----Original Message-----
> From: Nic Ferrier [mailto:[EMAIL PROTECTED]]
> Sent: donderdag 20 juli 2000 4:17
> To: [EMAIL PROTECTED]
> Subject: Re: Cloning or File-IO in my servlet?
>
>
> >>> Joost Verhagen <[EMAIL PROTECTED]> 20-Jul-00 2:51:11 PM >>>
>
> >> It seems to me that the best way to do is read in the
> >> XML structure and then parse through the XML structure
> >> sending output to a stream. That's not cloning. It would be
> >> quite quick.
> >I'm afraid not: we still have the file-io when parsing the xml.
>
> Huh?
>
> Not if you read in the XML into a data structure.
>
> I'm talking about a DOM like solution.
>
>
>
> Nic
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to