RE: PerlSax to parse/search large (~350 MB) file
by Corey Smith (s) other posts by this author
Jul 11 2001 1:01PM messages near this date
view in the new Beta List Site
Re: XPath seems slow - what am I doing wrong?
|
RE: PerlSax to parse/search large (~350 MB) file
Let me try this again. Here's a sample line from the xml file I'm working
with:
<conDef> <name>Influenza</name><code>C12345</code><id>637</id>..............<
/condDef>
I would like to search the file for the content of the <code> tag. Once the
code is located, the entire line (everything from <conDef> to </conDef>)
containing that code will be output. Because the file is large,
speed/efficiency is important.
Thanks for the response.
Corey
> -----Original Message-----
> From: Sterin, Ilya [SMTP:Isterin@[...].com]
> Sent: Tuesday, July 10, 2001 11:10 PM
> To: Corey Smith (s); 'perl-xml@listserv.ActiveState.com'
> Subject: RE: PerlSax to parse/search large (~350 MB) file
>
> I'm a little confused as to what you are trying to do. Give us a better
> example, unless someone here can understand you problem. Are you looking
> for a specific tag <...> or content of a tag? Once you find it, are you
> asking how you can extrace the content?
>
> Ilya
>
> > -----Original Message-----
> > From: perl-xml-admin@[...].com
> > [mailto:perl-xml-admin@[...].com]On Behalf Of Corey Smith
> > (s)
> > Sent: Tuesday, July 10, 2001 6:02 PM
> > To: 'perl-xml@listserv.ActiveState.com'
> > Subject: PerlSax to parse/search large (~350 MB) file
> >
> >
> > The task:
> > Search a large xml file for an identifier contained in an element.
> > Having located the line associated with the desired identifier,
> > output line from source file to file. Output all other lines to another
> > file.
> >
> > The problem:
> > Once there is a match on the identifier, how can I identify the line
> > from the input file so that I can output it to a file?
> >
> > Any help would be greatly appreciated. Thanks.
> >
> >
> >
> >
> > _______________________________________________
> > Perl-XML mailing list
> > Perl-XML@[...].com
> > http://listserv.ActiveState.com/mailman/listinfo/perl-xml
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
http://listserv.ActiveState.com/mailman/listinfo/perl-xml
Thread:
Corey Smith (s)
Matt Sergeant
|