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

RE: Subtyping in XML

  • To: "'Paul Prescod'" <paulp@p...>
  • Subject: RE: Subtyping in XML
  • From: "Aaron Skonnard" <aarons@d...>
  • Date: Fri, 6 Sep 2002 12:42:03 -0600
  • Cc: "'Paul Prescod'" <paul@p...>,<xml-dev@l...>
  • Importance: Normal
  • In-reply-to: <Pine.LNX.4.30.0209050352110.4527-100000@l...>

RE:  Subtyping in XML

Paul Prescod wrote:

> The "especially if the processing language is OO" paren is important.
Type
> inheritance can simplify your code *if* you are using some type-aware
data
> binding technology *and* you design your schema so that it is
compatible
> with this data binding technology (in my experience they are very
fragile
> in the fact of mildly complex DTDs). 


IMO this is the scenario where derivation by extension can prove
valuable. Although in general I'm not a huge fan of XML <-> object
mappings, I've see that it can simplify the XML processing code for
object wonks that can't see past the angle brackets. 


> > ...  And as Henry suggests, the author of the schema (and the
> > processing system) is in control of the schema and defines all
> > possible types accepted.
> 
> Basically I don't see this as a particularly interesting definition
for
> "extensible". Imagine if the common wisdom in the Java world is that
you
> shouldn't extend classes made by someone else! 


I understand your argument but guess I'm approaching from the WS
perspective where the author of the service defines the interface and
it's less likely that consumers would try sending their own extended
types in.

I can appreciate the argument that restriction would provide a safer
model in pure XML type hierarchies. However, if OO developers stay
within the (XML Schema) bounds of what makes sense in their OO systems
and apply the same design principles there, is extension really that big
of an issue? And isn't the mapping much more natural?

-aaron

......................................................
. Aaron Skonnard, DevelopMentor (http://skonnard.com).
.  Essential XML Quick Reference available online!   .
.    Download PDFs: http://www.develop.com/books     .
......................................................


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.