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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   parser generator on top of SAX

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: parser generator on top of SAX
  • From: Jochen Wiedmann <joe@ispsoft.de>
  • Date: Sat, 17 Jan 2004 00:09:35 +0100
  • User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4


Hi,

all Java parser generators I know are using a "pull model" for accessing 
their tokens. For example, they all invoke a method like

     Token nextToken();

While this is fine in general, it is unsuitable, if the token is a SAX 
event, because it leaves either of the following:

     - push the events (aka tokens) into a list and implement nextToken()
       by consuming the list elements; this is bad for large documents
     - Invoke the parser in a separate thread; this is bad for performance
       when parsing a lot of documents

Does anyone of you have recommendations how to fix this problem?


Kind regards,

Jochen





 

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

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