[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: (more) extensible SAX

  • From: Ken MacLeod <ken@b...>
  • To: xml-dev@l...
  • Date: Wed, 06 Dec 2000 14:38:43 -0600

difference between sax and sax2
Eric van der Vlist <vdv@d...> writes:

> Ken MacLeod wrote:

> > Coincidentally, this is one of the major feature differences with
> > Perl SAX (being descussed in the "SAX Comments" thread).  Perl SAX
> > has always used a node as the argument to SAX events.  In our
> > case, though, it's not a "start element" or "end element" object,
> > but just an element node, a DOM node, to be exact.
> > 
> > For SAX2's namespaces, all that needed adding was Prefix,
> > LocalName, and NamespaceURI properties to the nodes.
> 
> That's interesting (and proves me that I shouldn't be that Java
> biased) especially after the comment from Elliotte Rusty Harold
> about the added complexity of such an architecture.
> 
> What's your feeling after having implemented and used it ?

It's either the difference between strongly and weakly typed languages
or an as-yet-unrecognized difference in design pattern, but the
marriage of SAX and DOM in Perl, using Perl style APIs, results in
fewer classes/interfaces than in just SAX alone in Java.  The same
patterns work very well in Python and Tcl, and even C, but are having
troubles being ported back to Java/C++.

As we move more code into this framework, we've found the resulting
code to be quite a bit simpler overall.

  -- Ken

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.