ERK
Posts: 10
Nickname: erk
Registered: Dec, 2004
|
|
Re: Brett McLaughlin: What is XML Really Good For?
|
Posted: Mar 2, 2007 6:00 AM
|
|
What is XML good for? Nothing I've found yet.
Ivan Lazarte wrote: > Data, and describing data obviously. I believe its met its goal very well.
That wasn't its goal, and it doesn't do it well anyway. Relations are a better abstract description of data, although the mainstream SQL is a poor relational language. XML "describes," if anything, trees, and it does that rather poorly too - for example, contrast with Lisp's s-expressions. Superimposing REF and IDREF atop the tree accomplishes only obfuscation.
XML has lots of parsers - so what? Parsing is well-understood, and tools like JavaCC make generating parsers fairly trivial. You still need to write the logic to build whatever internal structures you require, or use a mapping framework which imposes some restrictions on the data structures you can have.
*** V.H.Indukumar wrote: > It seems that most people cannot get over the fact that XML is verbose. So what? > It does not stop me from doing interesting things with it."
Perhaps we should just roll ourselves back to using machine code (not that newfangled assembly!) to read and write files byte-by-byte, the way God intended! Or do you really believe that COBOL is just as good a language as, say, Lisp or Java?
> It has namespace support, it has SAX, it has DOM, both of which are well known standards.
So XML is good because it enables XML-processing technologies? Oooh!
> it has XPath,
So XML is good because it enables XML-processing technologies? Oooh!
> it has extensive editor support, it has DTD/XSD,
So XML is good because it enables XML-processing technologies? Oooh!
> it is simple to read (verbose, but simple),
The word "simple" requires some context, and XML requires the same advice about being "simple", advice Dean Wormer gave Flounder in "Animal House": "Fat, drunk, and stupid is no way to go through life, son."
> it is understood by a large amount of people, and most important of all, it is supported in virtually all environments.
So the popularity contest wins again?
> What more do you want? Give me a data format that has all these features and then > I will switch! Until then, I will suffer the verbosity of XML gladly.
XML: it's got it all, thus an evolutionary dead-end. No need to think about these matters any further, I guess.
|
|