OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] Designing XML to Support Information Evolution

[ Lists Home | Date Index | Thread Index ]


Looking at the four points thay you make:

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.

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.

Chris Angus


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS