cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Russell <Paul.Russ...@uea.ac.uk>
Subject Re: Cocoon 2.0: proposed battleplan
Date Mon, 17 Apr 2000 09:46:39 GMT
On Mon, Apr 17, 2000 at 10:30:23AM +0000, Sebastien Sahuc wrote:
> I think most XML Parsers have their DOM builder based on top of SAX 
> events. It's tbe case at least for the previous SUN Project X Parser( 
> DocumentBuilder implements DocumentHandler). That's might be the 
> reason why Pier believe no performance is lost in a SAX based 
> architecture with SAX2DOM and DOM2SAX utils.

To be honest, SAX is so close to being part of the normal
sequence of events inside a tree generating parsers, you're
probably not going to gain much anyway.

Tree parser:
   XML document -> Lexer -> LALR parser -> tree

Sax -> dom parser:
   XML document -> Lexer/event generator -> DOM generator


Paul

Mime
View raw message