Click here to Skip to main content
15,885,278 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Why is XML? Pin
Chris Maunder12-Jan-21 6:53
cofounderChris Maunder12-Jan-21 6:53 
GeneralRe: Why is XML? Pin
thewazz13-Jan-21 18:22
professionalthewazz13-Jan-21 18:22 
GeneralRe: Why is XML? Pin
Member 424647412-Jan-21 23:13
Member 424647412-Jan-21 23:13 
GeneralRe: Why is XML? Pin
Tim Yen17-Jan-21 11:15
Tim Yen17-Jan-21 11:15 
GeneralRe: Why is XML? Pin
KarstenK12-Jan-21 7:22
mveKarstenK12-Jan-21 7:22 
GeneralRe: Why is XML? Pin
Greg Utas12-Jan-21 7:28
professionalGreg Utas12-Jan-21 7:28 
GeneralRe: Why is XML? Pin
kmoorevs12-Jan-21 10:41
kmoorevs12-Jan-21 10:41 
GeneralRe: Why is XML? Pin
trønderen12-Jan-21 11:05
trønderen12-Jan-21 11:05 
I see XML (and even more: HTML) as a binary format. Not suitable for human consumption.

XML is OK for something generated as a binary serialization, untouched by human hands. Evaluated as such, XML qualities are mediocre. I cannot imagine any binary Tag-Length-Value format worse than XML, by any standard. XML has a single force: You can edit it using vi! (Or for that sake: cat 0 > filename Smile | :) )

Not too long ago, I asked (in General Programming) for reactions to my proposal of have a friend of mine provide a lot of tabular data as Excel tables, rather than vi editable files. That was more or less universally condemned: Either, he should provide data as a vi editable text file - in the class of XML, CSV, YAML, JSON ... - or I should develop a tailor-made domain-specific data entry application, doing a complete validation of all input data. Thinking that an Excel sheet might contribute to validation, whatever checks were added, was just naive and worthless.

I accept the arguments for a data entry application, as long as we recognize that text based binary formats such as XML, CSV, YAML, and JSON, are unfit for human consumption. They are binary: You have to be concerned about the representation, with regard to use of special characters, quoting, length restrictions, ... The contents isn't free. So, let's make data entry applications that are free. How easy is that, with XML, CSV, YAML or JSON as the user level data entry format?

Once we have come that far: Why not use a truly binary format, most likely TLV based? If you admit that the user should never edit the file directly, neither with vi nor cat 0 > file, what is then the advantage of using XML, HTML, CSV, YAML, JSON, ... ?

If anyone insists on obtaining the information in an "editable" format, generating it from a binary TLV representation is usually quite trivial. For the applications I manage, I can easily provide stored information in either "editable" format, or even (to some degree) accept input in those formats. Yet, any "editable" format is secondary. Simple tree structures, those that you can easily edit using vi (or cat 0 > filename) are easily handled, but if the data structures require cross-linking, you may need to use a some domain dependent data entry (or data manipulation) tool. You just can't handle complex structures neither in XML, YAML nor JSON; they have to be managed with specialized tools.

The essential point for this discussion: XML, as well as other "editable" formats, is completely unsuitable for anything but the most primitive data entry. I'd much rather read a table of input data from an .xlsx file that I can preview in Excel than from a an XML, CSV, YAML or JSON file that I can preview in vi (or for that sake: cat filename > less).

That's me. I recognize that others recognize vi as the ultimate data manipulation tool. (In its days, managing peek and poke was also considered essential to be recognized as truly qualified.)

Sometimes, I feel like an old, stubborn, ancient grandpa. At the same time, those vi (or cat 0 > filename) guys really belong to the generation before me Smile | :)
GeneralRe: Why is XML? Pin
Mycroft Holmes12-Jan-21 11:51
professionalMycroft Holmes12-Jan-21 11:51 
JokeRe: Why is XML? Pin
Daniel Pfeffer12-Jan-21 21:08
professionalDaniel Pfeffer12-Jan-21 21:08 
GeneralRe: Why is XML? Pin
hevisko12-Jan-21 19:53
hevisko12-Jan-21 19:53 
GeneralRe: Why is XML? PinPopular
Member 1036240612-Jan-21 19:56
Member 1036240612-Jan-21 19:56 
GeneralRe: Why is XML? Pin
Chris Maunder13-Jan-21 3:41
cofounderChris Maunder13-Jan-21 3:41 
GeneralRe: Why is XML? Pin
Sr_Dogmeat13-Jan-21 5:07
professionalSr_Dogmeat13-Jan-21 5:07 
GeneralRe: Why is XML? Pin
UsernamesAreHard12-Jan-21 19:57
UsernamesAreHard12-Jan-21 19:57 
GeneralRe: Why is XML? Pin
Member 1495125812-Jan-21 20:26
Member 1495125812-Jan-21 20:26 
GeneralRe: Why is XML? Pin
xlg12-Jan-21 20:39
xlg12-Jan-21 20:39 
GeneralRe: Why is XML? Pin
Kiriander12-Jan-21 21:05
Kiriander12-Jan-21 21:05 
GeneralRe: Why is XML? Pin
Mathieu Cartoixa12-Jan-21 21:26
Mathieu Cartoixa12-Jan-21 21:26 
GeneralRe: Why is XML? Pin
LesCooper12-Jan-21 21:38
LesCooper12-Jan-21 21:38 
GeneralRe: Why is XML? Pin
Steve Naidamast13-Jan-21 4:45
professionalSteve Naidamast13-Jan-21 4:45 
GeneralRe: Why is XML? Pin
Joseph T. Adams13-Jan-21 5:04
Joseph T. Adams13-Jan-21 5:04 
GeneralRe: Why is XML? Pin
Steve Naidamast13-Jan-21 5:26
professionalSteve Naidamast13-Jan-21 5:26 
GeneralRe: Why is XML? Pin
Joseph T. Adams13-Jan-21 5:31
Joseph T. Adams13-Jan-21 5:31 
GeneralRe: Why is XML? Pin
Sr_Dogmeat13-Jan-21 4:50
professionalSr_Dogmeat13-Jan-21 4:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.