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

Re: Sun XML early access

  • From: Tyler Baker <tyler@i...>
  • To: Michael Kay <M.H.Kay@e...>
  • Date: Fri, 25 Sep 1998 10:34:22 -0400

dom userobject
Michael Kay wrote:

> >Has anyone had a chance to look at the early access Sun XML
> package yet?
> >I'm just starting my explorations, and (so far, to me) it
> looks pretty
> >intriguing.  The DOM interface is promising, and I'm very
> glad to see SAX
> >support.
>
> I've been testing it with SAXON. Some hiccups, as yet
> unresolved, but generally promising. Performance is in the
> same league as xp and AElfred. They've done some interesting
> things with the DOM, for example the ability to nominate
> user-defined subclasses of Element, and a TreeWalker
> interface. This is where SAXON started last December!
>
> Actually I'm not sure subclassing Element with a "semantic"
> subclass, e.g. a business object such as Invoice, is the
> right approach, because you get a clumsy class heirarchy,
> and you invite the user to override methods inappropriately.
> I'd prefer to have the Element contain a "userObject"
> pointer to the business object.

I pretty much never ever subclass anything for typing purposes except as a code
reuse policy.  I have already learned the hard way that this sort of approach
builds highly inflexible and highly inefficient systems.  It forces you to build
upon previous implementations of superclasses that may have crappy
implementations.  If you are strict in doing all your typing with interfaces, you
can rewrite entire parts of systems (if necessary) without having to change your
code in any of your other systems.  Every major Java ISV out there seems to get
this other than SUN who still seems to prefer the subclassing approach in their
designs.  Maybe this is for some potential purpose of vendor lock in.  Who really
knows.

Tyler


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


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.