OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: SAX: finalising org.sax.xml.Parser

[ Lists Home | Date Index | Thread Index ]
  • From: Gavin McKenzie <gmckenzi@JetForm.com>
  • To: 'David Megginson' <ak117@freenet.carleton.ca>, 'xml-dev Mailing List' <xml-dev@ic.ac.uk>
  • Date: Tue, 24 Feb 1998 14:22:51 -0500


David,

Something just occurred to me...and maybe its too late, but I thought
I'd mention it...

With SAX there is an assumption that the whole file will be parsed.  I'm
stuck if I'm parsing a 1 gigabyte file that contains 50,000
<TRANSACTION> elements (representing transactions of data), and I only
want the first transaction.

Would it be possible for a mechanism that could pause/resume/terminate a
parse?  Maybe a callback that returns either a 'continue', 'pause' or
'terminate' status value, and a resumeParse() method?  Or a method that
I can call from within the callback to pause the parsing.

I know that I could throw an exception from within one of my callbacks,
which will halt the parse...but it would be valuable to be able 'pause'
and 'resume'.

Gavin.

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS