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

Re: RE: An inquiry into the nature of XML and how it orients o

  • From: Elliotte Rusty Harold <elharo@ibiblio.org>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Mon, 23 Nov 2009 10:37:47 -0500

Re:  RE: An inquiry into the nature of XML and how it orients o
On Mon, Nov 23, 2009 at 7:46 AM, Costello, Roger L. <costello@mitre.org> wrote:

> The OO form frames ones thoughts in this way:
>
>   Book stores contain a collection of Book objects
>   and Magazine objects. The Book and Magazine types
>   inherit from an abstract Publication type.
>

Sorry but this is wrong. Bookstores do not *contain* a collection of
Book objects. It seems you have now spent so much time with XML, that
XML has colored your thinking to the point where you try to fit
everything into an XML model. What you describe is an XML description.
Don't worry. It happens to everyone. It's just that I'm used to seeing
people try to force XML to fit the OO or relational models instead of
the other way around. :-)

The OO description is that a bookstore contains a *pointer* to a
collection of Book objects. Very rarely would a bookstore object
actually contain the books. The distinction is subtle, but critical
most especially when attempting to serialize object graphs into XML
trees or relational tables. Two different bookstore objects can have
pointers to the same books. However, two different bookstore elements
can't contain the same books. Trees are a restricted subset of graphs,
and this is why naive approaches to serialization are doomed to fail.
(Sophisticated approaches to serialization are also doomed to fail,
but for more complex reasons.)




-- 
Elliotte Rusty Harold
elharo@ibiblio.org


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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-2011 All Rights Reserved.