XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Is XML a language or a data format?

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]


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

Copyright 1993-2007 XML.org. This site is hosted by OASIS