[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: Shlomi Fish <shlomif@shlomifish.org>
  • To: xml-dev@lists.xml.org
  • Date: Wed, 27 Jul 2022 07:25:35 +0300

Re:  Equivalence of hierarchical and flat data formats
On Tue, 26 Jul 2022 20:02:06 +0000
Roger L Costello <costello@mitre.org> wrote:

> Hi Folks,
> XML is a hierarchical data format. Can flat formats express hierarchy?
> Answer: yes A hierarchical structure may be equivalently represented in a
> flat structure. And vice versa. Why is this important? Answer: If data is in
> one form, but the tools that are most suitable and efficient require the data
> be in another form, then simply convert the data to the equivalent other
> form. Below I demonstrate the equivalence of hierarchical and flat data
> formats. 1. Equivalence of lists of data Below is a list of book data. A
> hierarchical data format (XML) is used to express the list. <books> <book>
> <title>Compilers Principles, Techniques, Tools</title> <authors>Alfred V.
> Aho, Ravi Sethi, Jeffrey Ullman</authors>
> <publisher>Addison-Wesley</publisher> <date>1986</date>
>     </book>
>     <book>
>         <title>Introduction to Compiling Techniques</title>
>         <authors>J. P. Bennett</authors>
>         <publisher>McGraw-Hill</publisher>
>         <date>1996</date>
>     </book>
>     <book>
>         <title>Economic Facts and Fallacies</title>
>         <authors>Thomas Sowell</authors>
>         <publisher>Basic Books</publisher>
>         <date>2011</date>
>     </book>
>     <book>
>         <title>Economics in One Lesson</title>
>         <authors>Henry Hazlitt</authors>
>         <publisher>Harper &amp; Brothers</publisher>
>         <date>1946</date>
>     </book>
> </books>

hi Roger,

I can argue that a finite stream of 0 and 1 bits is a flat data format:

https://www.shlomifish.org/meta/FAQ/why_xml.xhtml

also - why have you avoided replying to my posts?

-- 

Shlomi Fish       https://www.shlomifish.org/
https://is.gd/htwEXQ - Integrating GNU Guile into GNU coreutils

Ken: [to Sarah] And who are you?
Sarah: I’m Sarah Eisenman. A Jewish vampire slayer. And who are you?
Ken: …Bitch!
    — https://www.shlomifish.org/humour/Buffy/A-Few-Good-Slayers/

Please reply to list if it's a mailing list post - https://shlom.in/reply .


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