Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #7317
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Subject | Re: large xml file... |
| From | Ian Shef <invalid@avoiding.spam> |
| References | <j2uqp4$n8h$1@speranza.aioe.org> <Xns9F49B4434CADvaj4088ianshef@138.125.254.103> <j2utk3$t1q$1@speranza.aioe.org> <j2utnu$t1q$2@speranza.aioe.org> |
| Message-ID | <Xns9F4A8259B4392vaj4088ianshef@138.125.254.103> (permalink) |
| Date | 2011-08-23 19:48 +0000 |
| Organization | Raytheon Company |
boris <boris@localhost.domain> wrote in news:j2utnu$t1q$2@speranza.aioe.org: >> On 08/22/2011 08:43 PM, Ian Shef wrote: > >> > Can you put the whole "large xml file" (or at least the part >> > >preceeding <text3>) into memory? >> no. > > No, I can load the whole file. 1 doc is not a problem... > > > > As you are processing, you can save the XML yourself (e.g. as a List of String_s). Based on the result of evaluating <text3>, you can choose to: Open an output file, copy the List of String_s to the output file, and copy any succeeding XML to the output file, or discard the List and discontinue processing. Alternatively, you can save the XML to a file as you process it. When you evaluate <text3>, you can choose to continue saving to the file, or delete the file and discontinue processing.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
large xml file... boris <boris@localhost.domain> - 2011-08-22 20:05 -0400
Re: large xml file... Ian Shef <invalid@avoiding.spam> - 2011-08-23 00:43 +0000
Re: large xml file... boris <boris@localhost.domain> - 2011-08-22 20:53 -0400
Re: large xml file... boris <boris@localhost.domain> - 2011-08-22 20:55 -0400
Re: large xml file... Ian Shef <invalid@avoiding.spam> - 2011-08-23 19:48 +0000
Re: large xml file... Arne Vajhøj <arne@vajhoej.dk> - 2011-08-22 21:59 -0400
Re: large xml file... boris <boris@localhost.localdomain> - 2011-08-24 14:40 -0400
Re: large xml file... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-08-24 18:59 +0000
Re: large xml file... Arne Vajhøj <arne@vajhoej.dk> - 2011-08-24 19:10 -0400
Re: large xml file... Stanimir Stamenkov <s7an10@netscape.net> - 2011-08-25 07:57 +0300
Re: large xml file... RedGrittyBrick <RedGrittyBrick@spamweary.invalid> - 2011-08-25 10:39 +0100
Re: large xml file... Stanimir Stamenkov <s7an10@netscape.net> - 2011-08-26 08:47 +0300
csiph-web