mifflin has asked for the wisdom of the Perl Monks concerning the following question:
I'm parsing a large XML document where I only need a little bit of the beginning of the document. Is there a way to force processing to stop as if the end of the document has actually been reached and have the end_document sub in the handler package be called. Ideally I'd like to force it to happen in the start_element sub when a certain element is encountered.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to force end_document in XML::SAX?
by samtregar (Abbot) on Nov 10, 2004 at 17:08 UTC | |
by mifflin (Curate) on Nov 10, 2004 at 21:15 UTC |