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

RE: Designing XML to Support Information Evolution


xml flatten
Roger 

Looking at the four points thay you make:

<snip>
1. How you structure your information in XML has a tremendous impact on
the processing of the information.

2. Hierarchy makes processing information hard!  There exists a
relationship between hierarchy of information and the complexity of code
to process the information.  The relationship is roughly: the greater
the hierarchy, the greater the complexity of code to process the
information  (Some hierarchy is good, of course.  But the amount of
hierarchy that is good is probably much less than one might imagine,
certainly less than I thought, as described above.)

3. Flat data is good data!  Flatten out the hierarchy of your data.  It
makes the information flexible and easier to process.

4. Order hurts!  Requiring a strict order of the information makes for a
brittle design.  It is only when I allowed the lots and pickers to occur
in any order that the flexibility and simplicity kicked in.
</snip>

I think that (1) is undoubtedly true!

I think that (2) contains some truth, but also hides some.  Using a
hierarchy as a general mechanism for representing relationships adds to
complexity, but using a relational model to model certain forms of
hierarchical structure also brings its problems.  In your example the
objects that ended up as elements under the root element were all
independent objects, their identities were separate.  Nesting elements
comes into its own where there is a strong aggregation relationship
between an element and its constituent elements - the identity of the
constituent elements being dependent on the identity of their parent
element in an invariant fashion.

(3) ties into my point about (2).

(4) Order hurts if it is there for processing convenience rather than
being an implicit property of the data.  It doesn't hurt in the case of
elements in a textual document, for example, but in your model it
carries no information.

Regards
Chris Angus


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.