ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: [xml-dev] Xml is _not_ selfdescribing
by Marcus Carr other posts by this author
Jan 15 2002 10:31PM messages near this date
RE: [xml-dev] Xml is _not_ selfdescribing | RE: [xml-dev] Xml is _not_ selfdescribing
Nicolas LEHUEN wrote:

>  The subtle thing here is that apart from the hierachical vs. flat structure
>  difference, very is no semantical "leap" from CSV to XML. Tag names are
>  basically the same things as column headers. Therefore, there is, I insist,
>  no more self-description of data in XML documents than in CSV files.

Not if the document is complete and correct, but if there is a mismatch between
the number of columns in the header and the number of columns in a row, you may
never know which column value is missing. Surely at worst, this is clarity at
the expence of potential redundancy?

>  You point the fact that lots of CSV files don't have column headers. Fine.
>  Then let's just create a CSV++ specification that enforce column headers. Et
>  voila ! We got a so-called "self-describing" CSV format.

Isn't a header analagous to a DTD? It describes how a document should be
constructed, not necessarily how it is constructed. Surely the
self-descriptiveness during error recovery is not out of scope?


--
Regards,

Marcus Carr                      email:  mrc@[...].au
___________________________________________________________________
Allette Systems (Australia)      www:    http://www.allette.com.au
___________________________________________________________________
"Everything should be made as simple as possible, but not simpler."
       - Einstein



-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
Nicolas LEHUEN
Marcus Carr
John Aldridge
Gavin Thomas Nicol
John Aldridge
Gavin Thomas Nicol

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved