how to skip some xml records using XML::SAX parser?
- From: uresh.kuruhuri@xxxxxxxxx
- Date: 15 Feb 2007 02:59:27 -0800
Hello All,
I have some performance issue while using the XML::SAX parser. I have
been using this parser for long time.
The problem is, I have a xml file, say >75 MB to parse. It's taking
hell lot of time to parse it. I don't need some of the xml records to
be parsed based on a particular field.
Each xml record is having 24 fields. On checking the first or third
field in the order of the xml record, i want to skip the parsing for
the remaining of the xml record and jump on to the next xml record. By
any chance, is it possible in XML::SAX parser???? If I can do this, I
would really save a significant amount of time in the process.
Also, let me know if the XML::SAX parser takes the DTD for the xml
document?
I remember that the XML::SAX parser reads the xml file line by line so
that more memory is not used up.
Thanks in anticipation.
Regards,
Uresh
.
- Follow-Ups:
- Prev by Date: manually expire an element in Memoize (also on comp.lang.perl.misc)
- Next by Date: Re: manually expire an element in Memoize (also on comp.lang.perl.misc)
- Previous by thread: manually expire an element in Memoize (also on comp.lang.perl.misc)
- Next by thread: Re: how to skip some xml records using XML::SAX parser?
- Index(es):
Relevant Pages
|
|