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

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

  • From: "Costello, Roger L." <costello@mitre.org>
  • To: "'xml-dev@lists.xml.org'" <xml-dev@lists.xml.org>
  • Date: Mon, 23 Nov 2009 07:46:57 -0500

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

Hi Folks,

Excellent discussion!

I'd like to try the following approach to exploring this subject. Below is an XML document in an Object Oriented (OO) form. Following it is an XML document in a relational database (DB) form. 

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.

The DB form frames ones thoughts in this way:

   Book stores consist of a table composed of records 
   about Books and a table composed of records about 
   Magazines.

"New methods of construction demand new forms" [1] 

Let us stipulate that neither the OO form nor the DB form orients ones thoughts properly, i.e. they frame, color, and categorize ones thoughts in a way that is not harmonious with XML. 

We desire an XML document that orients ones thoughts in a way that is harmonious with the construction methods provided by XML. What would such an XML document look like? Would you put forth a design, using the book and magazine data below, that properly orients ones thoughts?

/Roger

[1] "The Fountainhead" by Ayn Rand, p. 35.


******************************************
              OO Form
******************************************
<?xml version="1.0"?>
<BookStore xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <Publication xsi:type="Book">
                <Title>Amusing Ourselves to Death</Title>
                <Author>Neil Postman</Author>
                <Date>1985</Date>
                <ISBN>978-0-14-303653-1</ISBN>
                <Publisher>Penguin Books Ltd.</Publisher>
        </Publication>
        <Publication xsi:type="Magazine">
                <Title>New Scientist</Title>
                <Week>September 19 - 25, 2009</Week>
                <Cost>US$5.95</Cost>
        </Publication>
        <Publication xsi:type="Book">
                <Title>The Fountainhead</Title>
                <Author>Ayn Rand</Author>
                <Date>1943</Date>
                <ISBN>978-0-452-28637-5</ISBN>
                <Publisher>Penguin Books Ltd.</Publisher>
        </Publication>
</BookStore>


******************************************
              DB Form
******************************************
<?xml version="1.0"?>
<BookStore>
    <Books>
        <Book>
                <Title>Amusing Ourselves to Death</Title>
                <Author>Neil Postman</Author>
                <Date>1985</Date>
                <ISBN>978-0-14-303653-1</ISBN>
                <Publisher>Penguin Books Ltd.</Publisher>
        </Book>
        <Book>
                <Title>The Fountainhead</Title>
                <Author>Ayn Rand</Author>
                <Date>1943</Date>
                <ISBN>978-0-452-28637-5</ISBN>
                <Publisher>Penguin Books Ltd.</Publisher>
        </Book>
    </Books>
    <Magazines>
        <Magazine>
                <Title>New Scientist</Title>
                <Week>September 19 - 25, 2009</Week>
                <Cost>US$5.95</Cost>
        </Magazine>
    </Magazines>
</BookStore>


[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.