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

Re: Is XML a language or a data format?

  • From: Michael Kay <mike@saxonica.com>
  • To: Roger L Costello <costello@mitre.org>
  • Date: Sat, 16 Jul 2022 11:03:59 +0100

Re:  Is XML a language or a data format?
“When I use a word,’ said Humpty Dumpty, ‘it means just what I choose it to mean — neither more nor less.’

If you want to use the word "data format" to mean "a grammar that isn't defined using BNF and that isn't recursive" then you are welcome to do so. But I don't think you'll find it's a universally-accepted definition; and you'll find plenty of things that people call data formats that ARE recursive. In fact, a quick google gets among its top hits "the most common data formats found in modern APIs are JSON and XML".

It's not at all unusual for words to be used in a fuzzy way. By all means continue to do so if you wish. But please accept that unless you define your terms rigorously and precisely, your question "Is XML a language or a data format" doesn't have a binary answer.

Michael Kay
Saxonica

On 16 Jul 2022, at 00:59, Roger L Costello <costello@mitre.org> wrote:

Hi Folks,

I passed along the two Michael's comments to the colleague who asserted that data formats don't have grammars. Below is his response. Do you agree with his response?  /Roger
-----------------------------------------------------
So I offer....

     "In theory there is no difference between theory and practice. In practice, there is." -Yogi Berra

First, to clarify, when I said a data format "doesn't have" a grammar, I did not mean that literally like in formal computer science (CS) terms.

I meant it figuratively. The term "grammar" in the CS sense, is just not relevant. It lives alongside "spelling" and "algebra" as things one had to learn once (high school?), but these terms aren't used nor needed with reference to practical work with data.

Rather, we data people use terms like structure, struct, record, and layout. And of course "format".

Are these just synonyms for "grammar"? I claim no. They denote things that are simpler. E.g., one big difference is no recursion. Are these terms just "simplified grammars" in the CS sense? Yes. But the words used are my point here.

Case in point: There is a military data spec document that is 5000 pages long and a large fraction of those pages describe the format of each of its messages.
The term "grammar" does not appear anywhere in that 5000 page document.
It is big, but it's 'just' a data format.
-----------------------------------------------------
My colleague went on to say that if you remove XML's recursion capability, then it may be used as a data format; otherwise, it is a language.





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