[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Equivalence of hierarchical and flat data formats
- From: Michael Kay <mike@saxonica.com>
- To: Roger L Costello <costello@mitre.org>
- Date: Wed, 27 Jul 2022 10:03:34 +0100

Hi Folks, XML is a hierarchical data format. Can flat formats express hierarchy? Answer: yes
Obviously. All data structures reduce to a flat sequence of ones and zeros, and there are many ways of representing hierarchy in a flat structure e.g using level numbers or nested parentheses or tags.
P.S. Probably someone already proved this equivalence. Probably 50+ years ago. If you could point me to the proof, I would appreciate it. Nonetheless, it has been a useful insight for me.
As it happens, I completed my PhD 47 years ago, and it was on the subject of mappings between relational data models and network (Codasyl) models. The key conclusion was that it's very easy to do a mapping that supports all the same retrieval queries, but doing a mapping that supports exactly the same set of permitted updates is well nigh impossible.
One of the issues here is ordering. As soon as you start representing relationships using primary and foreign keys, you lose any natural way of representing order in the relationship, and if you try to represent order for example by using sequence numbers, then it becomes very hard to allow update primitives like "insert a new item at the start" without also allowing other update primitives that you don't want to allow.
Michael Kay Saxonica
|

[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!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
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.
|
|