XML Considered Harmful

Mats Wichmann mats at wichmann.us
Thu Sep 23 08:53:10 EDT 2021


On 9/22/21 10:31, Dennis Lee Bieber wrote:

> 	If you control both the data generation and the data consumption,
> finding some format  ...

This is really the key.  I rant at people seeming to believe that csv is 
THE data interchange format, and it's about as bad as it gets at that, 
if you have a choice.  xml is noisy but at least (potentially) 
self-documenting, and ought to be able to recover from certain errors. 
The problem with csv is that a substantial chunk of the world seems to 
live inside Excel, and so data is commonly both generated in csv so it 
can be imported into excel and generated in csv as a result of exporting 
from excel, so the parts often are *not* in your control.

Sigh.



More information about the Python-list mailing list