Slashdot Mirror


Why XML Doesn't Suck

Richard Eriksson writes "Recalling the earlier discussion on why XML sucks for programmers, Tim Bray clarifies his stance on his co-creation, XML, and gets back on his pulpit to declare that XML Doesn't Suck. He writes: 'Let's look at some of XML's chief virtues, then I'll address some of the XML-sucks arguments, in the same spirit that Sammy Sosa addresses a fastball.'"

384 comments

  1. Sammy Sosa analogy maybe not the best by cant_get_a_good_nick · · Score: 5, Funny

    in the same spirit that Sammy Sosa addresses a fastball

    You mean he strikes out swinging on three pitches while trying to jack the ball in the stands instead of trying to make contact?

    1. Re:Sammy Sosa analogy maybe not the best by Anonymous Coward · · Score: 0

      No, I think it has something to do with taking massive amounts of steroids. However, I'm still not sure how it applies to XML.

    2. Re:Sammy Sosa analogy maybe not the best by 1g$man · · Score: 1

      No, Sammy doesn't miss the fastball. Just the curveball three feet out of the zone.

      Wait a minute... are we talking Sammy Sosa now, or, say, Sammy Sosa 1996?

    3. Re:Sammy Sosa analogy maybe not the best by Anonymous Coward · · Score: 0

      IN SOVIET RUSSIA... ...Sosa jacks YOU into the stands!

  2. Huh? by Anonymous Coward · · Score: 0, Funny

    Wait a minute... according to a previous /. article, XML did suck. Now I'm cornfoozed.

    What does XML stand for anyway?

    Is it good for anything?

    Will it run Quake?

    1. Re:Huh? by Mas3 · · Score: 1

      What are the best XML-Handling-Libraries ?
      (It's still a little awkward to programm...)

      --
      Stefan

      DevCounter - An open, free & independent developer pool
      created to help developers find other developers, help, testers and new project members.

    2. Re:Huh? by MimsyBoro · · Score: 1

      Personnaly if you are using Windoze use MSXML. Nothing gets close to it speedwise and it is very comfortable and (ACK!!!) W3C XML-DOM Compliant. (Sorry I don't use SAX)

      --
      God made the natural numbers; all else is the work of man - Kronecker
    3. Re:Huh? by mrkh · · Score: 1

      Xerces XML Apache page is pretty good. Quite powerful, nice license, good examples, but (certainly with the older versions) not terribly fast.

    4. Re:Huh? by Anonymous Coward · · Score: 1, Funny

      and most important of all.. does it play OGG Vorbis?

  3. Why XML doesn't suck ... by mustangdavis · · Score: 5, Funny

    .... because people will pay you out the ying-yang to convert their system to use XML ...


    ... enough said!


    Besides, it is a great buzz word!!!


    1. Re:Why XML doesn't suck ... by byolinux · · Score: 1

      Exactly that... XML is mostly just a buzzword, used by middle-managers in meetings... Tech wise, it's fairly useful I spose, though I do wonder how much of it's adoption is out of usefulness and how much is from buzzword-manager-hype. At the end of the day, it's just tags -- though I'm being told they said that about HTML in it's day.

    2. Re:Why XML doesn't suck ... by mrkh · · Score: 3, Funny

      I don't like to admit I'm using XML for just that reason. I generally get one of three reactions:

      1) "XM... did you just say HTML?"

      2) Are you using the .NET parser? Why not?

      3) *left hook*

    3. Re:Why XML doesn't suck ... by bwt · · Score: 4, Insightful

      XML is mostly just a buzzword, used by middle-managers in meetings

      Perhaps, but those meetings are about the fact that the department over there uses technology X and the department over here uses technology Y and the company saves $$$ if the two departments can actually talk because right now you pay people to do data entry twice and you pay more senior people to deal with the discrepancies.

      These managers ask their tech people "How do we deal with this problem" and they hear "XML" and take that up the chain.

      The bottom line is that in a company, system integration costs are the biggest expense in IT. XML decouples data from platforms and that makes integration easier and saves big bucks. So it becomes a buzzword because upper management needs buzzwords to describe things that enable.

    4. Re:Why XML doesn't suck ... by leandrod · · Score: 1
      > XML decouples data from platforms and that makes integration easier and saves big bucks.

      Yes, XML is nice as a new, enriched Unicode. But it does nothing to make data saner, as the relational model does. This is done by the DTDs, which would be much better done as shared relational data schemas.

      --
      Leandro Guimarães Faria Corcete DUTRA
      DA, DBA, SysAdmin, Data Modeller
      GNU Project, Debian GNU/Lin
    5. Re:Why XML doesn't suck ... by bwt · · Score: 2, Informative

      XML schema has far greater capabilities in this regard than DTD's.

      I certainly agree that 3rd normal form schemas have advantages above even this. The only problem is that RDBMS schemas are tightly coupled to the individual database application that uses them and can't really exist without, well, an RDBMS. Both properties hamper system integration issues.

      You might examine Oracle 9iR2's XML database capabilities, by the way.

    6. Re:Why XML doesn't suck ... by Zork+the+Almighty · · Score: 1

      Besides, it is a great buzz word!!!

      Has anyone else noticed that a disproportionate number of "cool-techonology" things rely on the letter "X" ?

      Begin Rant :
      XML, XGA, x86, X.25, Xmodem, XP & OSX (each borrowing from XEROX), XT, XOR, XXX (in every computer ?), 3DFX, and because this is Slashdot I should flame Microsoft for DirectX and ActiveX.

      But the unix community deserves most of the blame. After all we have Linux, Unix, and other variants which we want to be POSIX, not to mention the grand-daddy of them all: an entire window system which we simply call "X", which perpetuates this sort of thing, because whereas we previously had terminals and clocks we now have x-terminals and xclocks. Indeed, thanks to the "X Window System" we can rename all of our programs, SOME OF WHICH DID NOT PREVIOUSLY INCLUDE THE LETTER X.

      But it goes much deeper. Just look at what we call supersonic jets, radiation, and chemical elements. As if that were not enough, we have set the millions of people in math courses around the world to the mysterious task of trying to find "x". The worst part is, as soon as you've figured out what x is, in the very next problem IT COULD BE SOMETHING ELSE !

      So I am asking slashdot when will this maddness end ? When can we turn our attention to the other "unpopular" letters, like "q", "w", and "p" ? Despite their consistent sponsorship of Sesame Street, these letters yearn for the attention currently squandered on "x". Is it too much to ask that we all run wclock ?

      --

      In Soviet America the banks rob you!
    7. Re:Why XML doesn't suck ... by Anonymous Coward · · Score: 0

      If you didn't have a common file format before, what makes you think you'll have a common xml schema now?

      You have to communicate and have a common design either way, xml just lets you do it with more bloat.

    8. Re:Why XML doesn't suck ... by Paradise+Pete · · Score: 1
      At the end of the day, it's just tags

      And programming is just a bunch of typing. What's the big deal?

    9. Re:Why XML doesn't suck ... by bwt · · Score: 1

      Good question. I have three good answers to why XML makes it easy to "have a common design".

      1) It's much easier to switch your app from one XML format to another because you don't have to rewrite the whole world of 3rd party XML tools. Parsers, validators, syntax checkers, marshalling, etc...

      2) XSLT is much easier than other kinds of file converters (especially if I have to write them to deal with your junky non-XML file format), so maybe we don't have to adopt a common schema but rather we just write two transforms. Oh, and we can use it to convert to HTML and SVG and the open office formats and ... Can your data format do that?

      3) The XML format is just flat out better. A bunch of really bright people got together and designed a format that had a lot of nice properties. For example, what you call bloat is better called "readability" and compressed XML, contrary to your assertion, is a very compact data format.

    10. Re:Why XML doesn't suck ... by grolim13 · · Score: 1
      Well, if you don't like X, I suppose you could always go for the more modern K and G. Gzip, Gnome, Gaim, Kpathsearch, Konqueror, Kcalc, ...

      Heck, you can even combine all the important letters and buzzwords into one project, like KxmlRPCd did.

    11. Re:Why XML doesn't suck ... by larry+bagina · · Score: 1
      would you eat out a woman's asshole?

      Would you eat out a man's asshole?

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    12. Re:Why XML doesn't suck ... by Anonymous Coward · · Score: 0

      Well, I must admit you do have two good answers.

      Can your data format do that?

      What data format? Of course it can, just not as easily. (nice ego, btw)

      For example, what you call bloat is better called "readability" and compressed XML, contrary to your assertion, is a very compact data format.

      There's more to bloat than just the data size, and compressed XML will likely still be bigger than compressed whatever your alternative is.

      If you have a poor schema design, you'll have huge data files and poor readability. If you've got people smart enough to design a good schema, you could probably have designed a pretty good binary format as well.

      Regardless, the translatability is a very good point.

    13. Re:Why XML doesn't suck ... by leandrod · · Score: 1
      > 3rd normal form schemas have advantages

      Why settle for the 3rd? Date just defined a 6th, that is relevant to temporal databases.

      > RDBMS schemas are tightly coupled to the individual database application that uses them

      Not at all... SQL yes, but a relational schema provides a really data-independent database to use by any number of different applications. On the contrary, XML and OODBs lack separation of physical and logical layers, thus entailing the coupling you talked about.

      > can't really exist without, well, an RDBMS. Both properties hamper system integration issues.

      Not at all... all systems need a RDBMS. That we have only SQL, and usually non-standard at that, does make things difficult in the short term. But if we don't start demanding real RDBMSs from vendors, we will never get them.

      --
      Leandro Guimarães Faria Corcete DUTRA
      DA, DBA, SysAdmin, Data Modeller
      GNU Project, Debian GNU/Lin
  4. Hang on... by Quixote · · Score: 5, Funny

    Going from "XML sucks" to "XML doesn't suck" isn't clarifying your stance! It is doing a 360. Even Bill "I didn't have sex with that woman" Clinton would have a tough time with this one.

    1. Re:Hang on... by Anonymous Coward · · Score: 5, Informative

      Actually its doing a 180.

    2. Re:Hang on... by cant_get_a_good_nick · · Score: 5, Informative

      It is doing a 360

      Going around in circles yet ending up where you started? I think you mean 180.

      We're going to turn this team around 360 degrees.
      - Jason Kidd, upon his drafting to the Dallas Mavericks


      That sounds like the Mavs., going around in circles but never really going anywhere.
      - Me.

      Well, then anyway, they're not all that bad at the moment, best motion offense in the league.

    3. Re:Hang on... by saddino · · Score: 4, Insightful

      That would be "I didn't have sexual relations with that woman" A subtle distinction. ;-)

      And to stay on topic, XML sucks for some things and doesn't suck for others, just like any other technology. A hammer claw is a fine tool for removing a nail, but not as useful for removing a splinter from your finger. Less energy needs to be spent on arguing whether technologies like XML suck or not, and more energy needs to be put into studying their most practical and optimal uses.

    4. Re:Hang on... by shr3k · · Score: 0, Flamebait

      "It is doing a 360"

      Me: "180, you stupid, spaghetti-slurping cretin -- *180*! If [he] did a 360, [he]'d go completely around and end up back where [he] started."

      You: (pondering): Huh?

      Me: Never mind. (fires off near-troll post).

      (ref: Last Action Hero)

    5. Re:Hang on... by Quixote · · Score: 3, Funny
      Actually its doing a 180.
      Argh! You are right. I meant "180". Where's the "preview" button on the brain?

    6. Re:Hang on... by HorrorIsland · · Score: 4, Funny
      Even Bill "I didn't have sex with that woman" Clinton would have a tough time with this one.

      "That depends on what the definition of 'sucks' is..."

      No, I can see him saying that.

    7. Re:Hang on... by Inda · · Score: 0, Redundant

      I always thought that if you turned around and headed in the other direction then, in fact, you are doing a 180...

      --
      This post contains benzene, nitrosamines, formaldehyde and hydrogen cyanide.
    8. Re:Hang on... by mirko · · Score: 2, Funny

      Well, the question is no more about whether XML sucks or doesn't : the question is whether "that woman" sucked or not :)

      --
      Trolling using another account since 2005.
    9. Re:Hang on... by arnie_apesacrappin · · Score: 2, Funny
      Going from "XML sucks" to "XML doesn't suck" isn't clarifying your stance! It is doing a 360

      This reminds me of the Dilbert strip where Dogbert gives Ratbert a book titled something like:

      "Conversational Geometry for Idiots"

      --

      Still, with a plan, you only get the best you can imagine. I'd always hoped for something better than that. -CP

    10. Re:Hang on... by DJ+FirBee · · Score: 1

      It's like doing a 180 three times, or a 360 two and a half times.

      Heck, it could be like doing a 270 twice.

      Ok. Here is a quiz. Are you smarter than a pro ball player ? Are you thusly more potent,? more virile ?, wish to let the ladies know? Are you better hung baby ?

      Answer this

      How many times 225 is it ?

    11. Re:Hang on... by e2d2 · · Score: 0, Offtopic

      first place in the Western Conference = going somewhere.

      W:54
      L:17

    12. Re:Hang on... by cHiphead · · Score: 1

      if we're nitpicking the quote... "I did not have sexual relatiosn with that woman"

      --

      This is my sig. There are many like it, but this one is mine.
    13. Re:Hang on... by y4h0oo · · Score: 1
      Going from "XML sucks" to "XML doesn't suck" isn't clarifying your stance! It is doing a 360. Even Bill "I didn't have sex with that woman" Clinton would have a tough time with this one.

      You mean 180, right ?
      --
      I'll change my sig when I have the time...
    14. Re:Hang on... by Farley+Mullet · · Score: 1
      first place in the Western Conference = going somewhere.

      yeah, out of the playoffs in (at the latest) the second round.

    15. Re:Hang on... by Viking+Coder · · Score: 1

      I'll play! How about: "I did not have sexual relations with that woman."

      --
      Education is the silver bullet.
    16. Re:Hang on... by evilviper · · Score: 2, Funny
      Where's the "preview" button on the brain?

      I added one for myself a few weeks ago when I added a windowed case-mod and neon lights...
      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    17. Re:Hang on... by drooling-dog · · Score: 1
      Even Bill "I didn't have sex with that woman" Clinton would have a tough time with this one.

      Ahhh yes... How I long for the Good Old Days, when a president getting his cock sucked was the biggest scandal we Americans could possibly imagine...

    18. Re: Hang on... by Black+Parrot · · Score: 1


      > > Even Bill "I didn't have sex with that woman" Clinton would have a tough time with this one.

      > "That depends on what the definition of 'sucks' is..."

      I suspect Wild Bill is pretty clear on that one.

      --
      Sheesh, evil *and* a jerk. -- Jade
    19. Re:Hang on... by JebusIsLord · · Score: 2, Funny

      Reminds me of a (bad) joke.

      "Two wrongs don't make a right, but three lefts do."

      --
      Jeremy
    20. Re:Hang on... by Shimbo · · Score: 1

      It is doing a 360

      Going around in circles yet ending up where you started? I think you mean 180.

      Nah. He could just have non-integral spin. We're not all bosons, you know.

    21. Re:Hang on... by s88 · · Score: 1

      No. I think he meant 720.
      Going around in circles and ending up in the opposite direction.

    22. Re:Hang on... by s88 · · Score: 1

      Going around in circles and ending up in the opposite direction.?

      I think you mean 540.

      Sorry. Self-references are only funny on Friday.

      Scott

    23. Re:Hang on... by Anonymous Coward · · Score: 0

      I can export mine to other apps via SOAP and XML

    24. Re:Hang on... by critter_hunter · · Score: 1

      Is that a Karel The Robot joke?

      --
      Karma: Could be worse (could be raining)
    25. Re:Hang on... by iabervon · · Score: 1

      What he said before was that XML processing hasn't been implemented in a way convenient for programmers. He's never had any problem with XML as a standard or data format. His clarification was basically that he only thinks that XML sucks for programming with the current tools, which is what he said before.

    26. Re:Hang on... by Anonymous Coward · · Score: 0

      "She may have sucked, but she didn't swallow, so it doesn't count!".

    27. Re:Hang on... by Anonymous Coward · · Score: 0

      > Even Bill "I didn't have sex with that woman" Clinton would have a tough time with this one.

      > "That depends on what the definition of 'sucks' is..."

      > No, I can see him saying that.

      Actually, if you combine the marijuana use and Lewinsky remarks, he'd actually say:

      "Yes, she saw me without my pants on, but she didn't suck....depending on what you mean but suck.";-)

    28. Re:Hang on... by Anonymous Coward · · Score: 0

      I wonder what will hang between quotes when we write - George " ....... " Bush ?

    29. Re:Hang on... by e2d2 · · Score: 1

      Off topic bah. Sounds like some bullshit to me. I was commenting on the comment my bitches.

      btw, ya mamma

    30. Re:Hang on... by Bananenrepublik · · Score: 1

      Maybe he's a spinor?

    31. Re:Hang on... by thorrbjorn · · Score: 1

      Going from "XML sucks" to "XML doesn't suck" isn't clarifying your stance!

      Tim Bray didn't say "XML sucks." RTFA.

    32. Re:Hang on... by An+IPv6+obsessed+guy · · Score: 1

      Don't worry about it--now, instead of +5, Funny for a 180, you got +5, Funny for a 360 AND a 180!

    33. Re:Hang on... by Zork+the+Almighty · · Score: 1

      Argh! You are right. I meant "180".

      That's ok, it was indistinguishable from the other arguments on slashdot, many of which do multiple 360's.

      --

      In Soviet America the banks rob you!
    34. Re:Hang on... by Anonymous Coward · · Score: 0

      Axis of Evil, probably.

    35. Re:Hang on... by Tomster · · Score: 1

      "A hammer claw is... not as useful for removing a splinter from your finger."

      Well son, you didn't see the 'splinter' that got jammed into my finger last week. I prolly could've dug it out with a backhoe if I'd had one handy.

      (on-topic) XML has its uses, but not the panacea some portray it as. (/on-topic)

      (Dammit, I can't even use proper angle brackets for the above.)

    36. Re:Hang on... by jcast · · Score: 1

      You long for the Good Old Days, when our president was an ineffective sex-crazed not-seminal-enough-but-otherwise-qualifying-as-a-m aniac?

      --
      There are reasons why democracy does not work nearly as well as capitalism.
      -- David D. Friedman
    37. Re:Hang on... by matrix29 · · Score: 1

      I wonder what will hang between quotes when we write - George " ....... " Bush ?

      George WORTHLESS Bush describes the SUPERFRAUD more than enough.

      Otherwise the most accurate name I have for him is Criminal Traitor Mass-Murderer Sadistic Satanist Lifetime-Cocaine-Addict Pathological-Liar Lunatic-Cannibal Fraud President George WORTHLESS Bush.

      However, for fast reference I just go with the well-earned title of SUPERFRAUD Bush. What else would any sane person call a nutball who uses the Idi Amin tactic of being really stupid and lazy while pretending to be MORE STUPID than he really is while pretending to be a "compassionate" "conservative" yet using the Anti-American methods of Adolph Hitler, Stalin, and Richard Nixon against America with his GOP=KGB WHORE attack on America with the USA-PATRIOT-DEATHCAMP-ENABLING-ACT? SUPERFRAUD Bush has shown all of the thinking Americans and the entire world through his CRIMINAL TRAITOR actions that he and his entire GOP=KGB WHORE CULT of Criminal Traitor Republican Traitor Criminals that their words mean ABSOLUTELY NOTHING while their actions prove them beyond all doubt wicked, dangerous, and insane. America can only survive if it purges itself of the vile ilk of the Criminal Traitor Republican Traitor Criminal Party until the Republican Party can prove itself not to be irrevocably corrupted by insane weasels cloaked in stolen human skin. The Criminal Traitor Republican Traitor Criminal Party has proven itself the Satanic "Axis of Weasels".

      --
      "Face it, a nation that maintains a 72% approval rating on George W. Bush is a nation with a very loose grip on reality.
    38. Re:Hang on... by cHiphead · · Score: 1

      damn those crafty geoducks. damn them all to hell.

      --

      This is my sig. There are many like it, but this one is mine.
  5. Apple Uses XML by Anonymous Coward · · Score: 2, Informative

    It seems to work well for Apple. It works great for the core database for iTunes, iPhoto and many other apps :-)

    Steve likes it, he really likes it!

    1. Re:Apple Uses XML by enomar · · Score: 1

      It works great for the core database for iTunes, iPhoto and many other apps

      Are they using a XML database or are they storing the data in XML files? Thanks.

      --

      :wq
    2. Re:Apple Uses XML by Anonymous Coward · · Score: 0

      XML database

    3. Re:Apple Uses XML by flagstone · · Score: 2, Informative

      They use XML files in the regular filesystem to store paths to image/music files, album/playlist data, etc. It's not an XML database in the Xindice sense of the term. The data files themselves are regular MP3/JPG/etc files.

      --
      These people have looked deep within my soul and assigned me a number based on the order in which I joined.
    4. Re:Apple Uses XML by enomar · · Score: 1

      That is what I thought. Thanks.

      --

      :wq
  6. I DO hate XML by ruiner13 · · Score: 5, Interesting
    I have to write SOAP calls for our .NET website, and i'll be damned if XML isn't the most irritating language ever. It wouldn't be so bad if everyone could agree on syntax, but since XML is so vague of a language for every implementation there is a different syntax, even amongst the SOAP standard XML specs. I am currently working on hafing our website make a SOAP call to a PERL::Lite SOAP server, and can't get the .NET to get the right data out of the response, even though the Perl server understands the .NET request fine, and is sending the right response. If it was really the panacea for programmers, there would be no interoperability problems. Sure, a human can look at any XML schema and know what is going on, but computers are the ones who have to deal with it, and they seem to have problems frequently.

    Just my 2 cents.

    --

    today is spelling optional day.

    1. Re:I DO hate XML by bmongar · · Score: 1

      Sounds to me like your problem is your .NET tool set not XML.

      --
      As x approaches total apathy I couldn't care less.
    2. Re:I DO hate XML by zero_offset · · Score: 1

      Or SOAP on PERL::Lite.
      Cuts both ways.

      --

      Slashdot quality declines as the number of hot grits posts decreases. - Provolt's Law, Apr-09-2005

    3. Re:I DO hate XML by mark_lybarger · · Score: 3, Insightful

      sorry for the tools you're stuck working with, but xml as a language/specification is agreed upon. it's in the vendor's implementations where YMMV. i haven't worked with perl/soap, but many people find the xerces parser to work nicely.

      computers don't have to deal with the xml schema, it's someone's implementation of how to handle schema's is where the problem comes in.

      just my quarter.

    4. Re:I DO hate XML by Anonymous Coward · · Score: 1, Informative

      I agree with another poster, your problem is the microsoft tools for reading xml. You're not alone with this problem, a friend of mine was whining just last night about how he hates xml because it keeps crashing his computer. Turns out he was trying to read a 200+MB file with MSIE. BAD idea, microsofts implementation is very bad.

      I highly recommend the IBM alphaworks toolkit (cerces or xerces or something). I use this extensively and it works perfectly, without any noticeable memory leaks.

      My only issue with XML is that for some reason people think "we should convert our computers and networks to an xml based paradigm" is a sentence that makes sense.

      XML is just a nice way of organizing certain kinds of data that's relatively easy to program with. That's about it.

    5. Re:I DO hate XML by bmongar · · Score: 1

      Or that too. My point was it was the tool set not the language.

      --
      As x approaches total apathy I couldn't care less.
    6. Re:I DO hate XML by enomar · · Score: 1

      The original poster said:
      ...can't get the .NET to get the right data out of the response, even though the Perl server understands the .NET request fine, and is sending the right response.

      From what he's saying, it doesn't cut both ways; The server understands the .NET message correctly, the server responds correctly, but his tool can't extract the correct information from the response.

      While I agree that it could be any of the tools breaking the chain, that is not what he said.

      --

      :wq
    7. Re:I DO hate XML by ckimyt · · Score: 0
      I have to write SOAP calls for our .NET website, and i'll be damned if XML isn't the most irritating language ever.

      It never ceases to amaze me how many people think XML is a language.

      --

      Putting the sig back into +1, Insightful since 1995!
    8. Re:I DO hate XML by KingAdrock · · Score: 1

      XML: eXtensible Markup Language

    9. Re:I DO hate XML by enomar · · Score: 1

      microsofts implementation is very bad.

      MS has broken the real value of XML by creating their own version of it. By 'extending' it, they are breaking any kind of interoperability that XML brought to the table. But since they own 99% of the office/desktop world, they think they can ignore standards and everyone will have to follow. They're just pulling the same shit they did with html.

      --

      :wq
    10. Re:I DO hate XML by Anonymous Coward · · Score: 0

      I think he says "language" in the same way you would call Perl or C++ or Java "languages". Which means, programming languages, which ends up being something you can compile and then execute.

    11. Re:I DO hate XML by EastCoastSurfer · · Score: 4, Informative

      It never ceases to amaze me how many people think XML is a language.

      LOL, so true. Maybe /. should link to a XML FAQ each time they do a story.

      XML document == data in a well defined format

      XSL/XSLT == tells how to display XML data(think FOP), but is itself a valid XML document

      XPATH == XML query language, which after you look a few examples it isn't too hard

      SVG == vector graphic format stored in an XML data stream

      XML itself is not hard, but until you figure out how all the many pieces fit together it can be confusing. Another thing to keep in mind is that you don't have to use every piece to make use of XML.

    12. Re:I DO hate XML by Anonymous Coward · · Score: 0

      What are you talking about? Show me some of this supposed XML that Microsoft generated that can't be read by another XML parser.

      Extending XML isn't bad at all. That's why it's called extensible markup language.

    13. Re:I DO hate XML by Mr.+McGibby · · Score: 4, Interesting

      You make a good point, but don't go far enough.

      I think the original poster's point was that XML allows for so much abiguousness, that every tool seems to do it differently and none of them can understand each other. The standard should be so strict as to *require* that if the same representation of a "piece of data" is made by two different tools, the representation should be exactly the same. No reason to say, "oh, you can put an endline there if you want, or you can end a tag these two different ways, whatever suits your fancy.

      Sure, the tools should have been written so that they all followed whatever standard is out there, but we all know that that doesn't happen. The standard should *force* the tool writer to be anal about the standard and follow all the conventions.

      A good compiler should do as good a job as possible to warn you of errors, before they become runtime errors (because those are harder to find). In the same way, a language should be designed such that more errors are compiler than run-time. In the same way, a standard should nearly impossible to create a file that doesn't follow the standard perfectly and still work. XML folks actually tout the opposite as a benefit!

      A tool is written and most of the time is tested with itself, and thus *seems* to work, but doesn't really.

      --
      Mad Software: Rantings on Developing So
    14. Re:I DO hate XML by enomar · · Score: 1

      That's why it's called extensible markup language

      uh..No, it's called extensible because you can extend the language, not because you can extend the syntax.

      --

      :wq
    15. Re:I DO hate XML by kalidasa · · Score: 2, Informative

      XML isn't a language. It is a metalanguage. It is vague by design, to allow arbitrary languages to be created.

      XML is not a programming panacea. It is for structured data.

      Suck it up.

    16. Re:I DO hate XML by sporty · · Score: 1

      Yeah, but XML, the technology has rules and a syntax. It's a meta-language. XSLT, XPATH, SVG, HTML, SOAP... their definitions are languages.

      --

      -
      ping -f 255.255.255.255 # if only

    17. Re:I DO hate XML by ekidder · · Score: 1

      Woah. perl.com is running an article about this exact same problem. This article describes how to use SOAP::Lite to talk to a .NET Server. Well, mostly. I just glanced through it, since I don't do any XML work :)

    18. Re:I DO hate XML by TummyX · · Score: 1


      XSL/XSLT == tells how to display XML data(think FOP), but is itself a valid XML document


      That's only a side effect. XSLT lets you transform XML into another text format. That can include HTML for display or other formats such as XML (with a different schema), LaTeX, Postscript etc.

    19. Re:I DO hate XML by realdpk · · Score: 1

      The main gripe there was about HTML and the lack of enforced standards was that every browser company came up with their own rules.

      Now, with XML, every company can come up with their own rules and it's magically OK, because the standard allows for that.

      Just as it's hard to write for all of the various HTML standards out there, it will be hard to write for the one XML standard that is implemented in so many different ways.

    20. Re:I DO hate XML by mark_lybarger · · Score: 1

      again, the heart of xml leaves you two things. you have a valid document, or you have an invalid document (according to a DTD or schema or just syntactically).

      the plethora of tools surrounding xml, the processors, is where the troubles come into play. tools, just like all other software is going to have bugs. i prefer to go for open source type tools that if i need to i can dig into it and create a nice fix or work around for that bug. if you're using microsoft xml parsers, processors, etc, you probably don't have that luxary

    21. Re:I DO hate XML by medeii · · Score: 2, Insightful

      XML does allow for ambiguity. However, it also allows for a lot of control -- it's just that many users don't make use of it.

      If you wanted to, you could write an XML document without any sort of DTD or schema. It validates, because there's nothing to validate it against. Similarly, many companies create XML files without bothering to create schemas, and so they run into problems because they didn't define their own document structures first.

      XML has its own standard, but that standard isn't meant to extend to the content. It's just a few simple rules on syntax, not a tag structure. You are left to do that on your own. Similarly, the tools out there can validate XML documents against schemas or DTDs (ever tried Xalan?) but they can't do a dang thing if you don't have a schema to go with your file.

      You seem to be blaming the W3C and an open file standard for your own problems with document structure. It appears you're not using the right tools.

      --
      got standards? --- http://www.w3.org/
    22. Re:I DO hate XML by Anonymous Coward · · Score: 0

      "It appears you're not using the right tools."

      More than likely it is that he/she is not using the tool right.

    23. Re:I DO hate XML by rben · · Score: 2, Insightful

      First, XML is a language used to define markup languages. Those markup languages are called XML applications. The XML Application designed to store your preferences for a particular software application may be quite different than the XML application designed to store the data used by that software application.

      All XML must be properly formatted, or well-formed, for a given XML document to be readable by XML parsers. That means that beginning and end tags have to match, the tags are all in lower case, and attributes must be enclosed in double or single quotes, as well as some other rules. It's also possible to define a DTD or Schema which formally defines the XML application and can place restrictions on how the data in a given tag can be represented. The Schema gives the XML application developer the most control over how the XML application documents can be constructed.

      Not all applications need be "anal" about their data files and a certain amount of flexability can be very useful. When XML is used for configuration files, for instance, tags that aren't understood are ignored by default. The XML application schema can be written so that missing tags take on a default value, making it easy to upgrade software applications without having to include a conversion program to update the configuration files. Ignoring unknown tags also means that additional tags can be added to XML files produced and used by one application in order to add data for a second application that uses information from both sets of tags.

      Enforcing the standards for a particular XML application is the job of the DTD or Schema which defines the XML application. Software applications that use the same XML application will use the same Schema. Using the Schema and validating the XML provides just the degree of "analness" that the XML application designer and software application designer desire.

      --

      -All that is gold does not glitter - Tolkien
      www.ra

    24. Re:I DO hate XML by ruiner13 · · Score: 1
      "Woah. perl.com is running an article about this exact same problem. This [perl.com] article describes how to use SOAP::Lite to talk to a .NET Server. Well, mostly. I just glanced through it, since I don't do any XML work :)"

      Yeah, i saw that, but what i'm doing is the reverse, using .NET to talk to a SOAP::Lite server. I have not found one shread of documentation on this anywhere (and have been searching for 2+ days).

      --

      today is spelling optional day.

    25. Re:I DO hate XML by You're+All+Wrong · · Score: 1

      "every company can come up with their own rules and it's magically OK, because the standard allows for that."

      Yeah, that was the first thing that jumped out of the "doesn't suck" document:
      """
      [lots of example uses of XML]

      That's a lot of syntaxes that didn't have to be invented.
      """

      WRONG!

      That's a whole lot of syntaxes that _did_ need to be invented, however, they're all syntaxes that are based on a single simple pattern and are defined by XML schemas.

      The rest of his diatribe wasn't wrong, it was just completely vapid. It's almost as if he thinks no format has ever been unambiguously defined before. Does (E)BNF not exist in his world? Did Church and Post not crop up in his education?

      The examples he gives of with-XML-I-can-do are far less impressive than the interoperabilities that have been achieved _before_ XML. (S7, IP, GSM, heck user-visible things like H320 - dozens, hundreds, thousands even for IP, of vendors with interoperability designed in, from the outset, _without_ XML).

      If he'd have changed the question "who thinks they're going to be using the same word processor in ten years" to "who thinks they're going to be using the same editor in ten years?" then I'd stick my hand up. I was using that editor 15 years ago, and I expect to be using it in 15 years time too.

      It's all a religious argument. I like the attitude of "it works for me so I'll use it", but I don't like it when peddlers push what works for them down my throat pretending it's the best thing since sliced bread and is perfect for every purpose. I've writen parsers, I've generated and decoded data that's interoperated on dozens of platforms. I'm simply not impressed by the same arguments that sell technology to managers and marketting departments.

      Use it if it does the job well.

      That's all there is to the whole issue. The answer's sometimes XML, it's sometimes not.

      YAW.

      --
      Your head of state is a corrupt weasel, I hope you're happy.
    26. Re:I DO hate XML by CodeMunch · · Score: 1
      No reason to say, "oh, you can put an endline there if you want, or you can end a tag these two different ways, whatever suits your fancy

      I'm not sure if below is what you are getting at - please elaborate if not.

      End tag two different ways?:

      <element attr1="" attr2="" />
      <element attr1="" attr2=""></element>

      An XML parser should handle both of these valid situations seamlessly. The XML parser should also perform the document validation, not the application.

      The application using the parser should receive the same view of the information and should NOT be accessing the XML directly. The application should concentrate on doing application things. The XML parser should concentrate on the XML manipulation. Be it a structured language with API's or an OOP language. Application layers do wonders.

    27. Re:I DO hate XML by ichimunki · · Score: 1

      Uh, extending the syntax would be extending the language, as any language is a combination of both syntax/grammar and vocabulary. :)

      That said, how exactly is MS changing the syntax? Is there really that much syntax in the first place when it comes to XML?

      --
      I do not have a signature
    28. Re:I DO hate XML by Jonner · · Score: 1

      I couldn't agree with you more. I cringe every time someone says "We can export to XML," or "tool X can convert from Y to XML." This seems to be the biggest misunderstanding about the whole issue. I guess many people see the word language and think it's in the same category as C++ or SQL or HTML (each of which is in a different category, by the way). XML is really in a higher level category than all of them (nicely evidenced by the current version of HTML being an application of XML and that languages like C++ and SQL are generated from templates written in XML languages).

      Maybe part of the problem is the name itself. Maybe it would be slightly less confusing if it were called the Extensible Meta Language.

      I think of XML being in a similar category as ASCII. I know it's not a successor to ASCII (the best one is the Unicode family) and I know it's higher level than ASCII, but it can be used to accomplish previously unknown heights of interoperability, like ASCII allowed people to use the same data on different computers for the first time.

      No one complains that ASCII doesn't check for valid data, because you can express any kind of data using ASCII. Maybe an even better metaphor for XML would be English. English is one human language, not ideal by any stretch of the imagination. Most of the world doesn't speak English, and there are many things that can be better expressed in another language. But, English is the closest human language to being universal (with the exception of math, but that's not flexible enough for most of human knowledge).

      English is flexible enough to allow someone to express most human thoughts and be understood by a huge number of other people. It is very free form, allowing the same idea to be expressed a myriad of different ways. When knowledge has to more structured, like on a college application, a form is used to constrain it.

      Well, this post was just a meandering trail of thought and brainstorming, not very well structured. Using XML metaphor, it was well formed (correct spelling and grammar AFAIK), but not validated (I didn't try to adhere to a particular logical structure, like an essay, treatise, or proof). I'm not trying to say that English should be universal or that other languages have less value, so don't flame me on that. English is just the language I know best and the one which can reach the greatest part of the world (unless, perhaps, you wanted to reach China).

    29. Re:I DO hate XML by Anonymous Coward · · Score: 0

      > I think of XML being in a similar category as ASCII.

      Sheesh. XML isn't a successor to ASCII. How can it be? It is and I quote from a previous post by Jonner, a "higher level than ASCII" . Do you know anything?

    30. Re:I DO hate XML by foandd · · Score: 1
      I cringe every time someone says "We can export to XML,"

      Why? I suppose it's possible that the people saying that don't really understand what it is they're saying, but it seems to me just as likely that you don't understand what they're saying.

      I love it when people say "We can export to XML." You know why? Because then I know I can get at the data with the tools I already have available to me. I don't have to worry about whether I'm dealing with yet another binary format that I need a special program to deal with, or whether someone's using a program to generate the data which keeps its data format a closely guarded secret. If it's XML, I know that I can get to it.

      Does that mean it won't be work, or that everything is done for me? Of course not. But it does mean that the hardest part of the job, making it possible and having the tools with which to do it, is already done.

    31. Re:I DO hate XML by enomar · · Score: 1

      language is a combination of both syntax/grammar

      Yeah, so let me rephrase that for the picky...it's called extensible markup language because you can extend the tag set of the language.

      That said, I don't know exactly how their version of XML differs. I read about it in a white paper a while ago. I'll post a link if I can dig it up. I didn't originally provide it because I assumed this was common knowlege...Sorry

      --

      :wq
    32. Re:I DO hate XML by tinguru · · Score: 1
      the tags are all in lower case,

      no...but they are case sensitive.

    33. Re:I DO hate XML by UserGoogol · · Score: 1

      "We can export to an XML based format" might be more accurate, though.

      --
      "Never attribute to malice that which can be adequately explained by stupidity." -- Hanlon's Razor
    34. Re:I DO hate XML by Anonymous Coward · · Score: 0

      RPC style SOAP was never designed be interoperable, only DOC style SOAP is. The SOAP spec states this clearly. Use your tools for what they where intended to do. Don't whine about how they act when you use them beyond their design.

    35. Re:I DO hate XML by Jonner · · Score: 1

      No, you misunderstood me. Perhaps I wasn't clear enough. I agree with you 100% that using XML is very useful for interoperability, which I also explained in my post. What I mean is that many people seem to say things like "this tool can export to XML" just for the buzzword compliance, without understanding what XML really is. If someone says "we can export to XML grammar Y" or "we have designed and specified XML application Z," then the person understands what XML is: not one particular data format, but a tool for designing data formats.

      I was merely saying that it bothers me when people talk about using XML just because it's all the rage instead of using a tool because it's appropriate.

    36. Re:I DO hate XML by kalidasa · · Score: 1

      For the most part, "we can export to XML" means "we've made up an XML vocabulary, and we can export to that; hope you don't mind cleaning it up with a little XSLT to make it presentable." Interesting posting.

  7. XML is so good... by BillGodfrey · · Score: 2, Funny

    http://www.ietf.org/rfc/rfc3252.txt

    1. Re:XML is so good... by Randolpho · · Score: 4, Insightful
      The wild popularity of XML as a basis for application-level protocols such as the Blocks Extensible Exchange Protocol [RFC3080], the Simple Object Access Protocol [SOAP], and Jabber [JABBER] prompted investigation into the possibility of extending the use of XML in the protocol stack. Using XML at both the transport and network layer in addition to the application layer would provide for an amazing amount of power and flexibility while removing dependencies on proprietary and hard-to-understand binary protocols. This protocol unification would also allow applications to use a single XML parser for all aspects of their operation, eliminating developer time spent figuring out the intricacies of each new protocol, and moving the hard work of parsing to the XML toolset. The use of XML also mitigates concerns over "network vs. host" byte ordering which is at the root of many network application bugs.
      This is an example of what XML is *not* good for.
      --
      "Times have not become more violent. They have just become more televised."
      -Marilyn Manson
    2. Re:XML is so good... by Anonymous Coward · · Score: 0

      *yawn*.. its so boring when geeks try to be funny...

    3. Re:XML is so good... by Trinn · · Score: 1

      Unless I am mistaken about which RFC this is, this is actually an example of someone *not* getting the joke. Sorry to have to point that out, but someone did. This one is actually almost as good as the one about datagram transport via avian carrier, though I cannot remember its RFC #.

    4. Re:XML is so good... by sketerpot · · Score: 1
      From the RFC: 1 April 2002.

      There is significance in this date. Let this RFC be a warning to all who think that XML is the right tool for everything.

    5. Re:XML is so good... by Randolpho · · Score: 1

      *blushes*

      Ok, you're right, I didn't get the joke. I guess I blame it on too many XML zealots... Yeah, that's the ticket. :)

      --
      "Times have not become more violent. They have just become more televised."
      -Marilyn Manson
    6. Re:XML is so good... by bribass · · Score: 1

      /me wonders if Randolpho looked at the date of that RFC.

  8. Geometry doesn't suck by Anonymous Coward · · Score: 0, Funny

    a 360 from "XML sucks" is "XML sucks"

    try 180.

  9. XML! by CommieBozo · · Score: 1, Interesting
    Whether you like XML or not, it's here to stay. It's worth your time to learn how to deal with it.

    These days we have zillions of XML parsers to play with, and they make it pretty darn easy. And it sure is nice to know that when a vendor says they'll give you XML, you can read it. Unless that vendor is Microsoft, of course.

    1. Re:XML! by molarmass192 · · Score: 1

      XML is great when it's properly formatted. We accept 3rd party XML as input into one of our apps and dealing with out of whack XML is a bloody nightmare. Most of the pre-built XML parsers don't make assumptions on formatting so I had to override, mod, etc ... to allow for some of the crap people think is XML. Beyond the bitching though, it's still the most logical alternative for data interchange and works very well so long as you check for "garbage in".

      --

      Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws-Plato
  10. XML Confers Longevity by Spudnuts · · Score: 5, Interesting

    Mr. Bray makes a point about the longevity of XML based documents (where he says that tying up documents in a binary format is foolish), but this is a point that (La)TeX users have been arguing for years.

    Will XML really solve this problem? Hopefully the OpenOffice format will help, but if Microsoft maintains its marketshare (and keeps its XML generation limited or even proprietary), are we really better off?

    I'll just stick with LaTeX.

    1. Re:XML Confers Longevity by hankwang · · Score: 1
      [article] Everyone in the audience who thinks they're going to be using the same word processor in ten years, raise your hand

      >this is a point that (La)TeX users have been arguing for years.

      Indeed, I've exclusively been using LaTeX for document prepration over the past 14 years. But even though XML documents are not binary, it's not evident to me that it will be easy to render/interpret one of them in ten years from now; doing something useful with it comprises more than just being able to validate the syntax.

    2. Re:XML Confers Longevity by abe+ferlman · · Score: 1
      Here's the point as it appears in the article:

      XML Confers Longevity When I'm doing a standup speech, I often ask: "Everyone in the audience who thinks they're going to be using the same word processor in ten years, raise your hand." No hands go up. "Everyone who has data around that's going to have value in ten years?" After a minute's thought, every hand goes up. The lesson is clear: information outlives technology.

      And yet, as of today, too much of our intellectual heritage is tied up in fragile, proprietary, binary word processor files. This sucks. XML is the solution.


      There's an obvious problem with this though- you can use XML as a fig leaf wrapper around whatever binary format you like. It's the proprietariness and binariness (binality?) of the formats that sucks, not the fact that they're not XML.

      In fact, XML is worse than nothing for two reasons.

      First, we now have to parse the XML in addition to parsing the binary document itself.

      Worse, Microsoft can wrap their crap in an XML wrapper and say "look, we have an open, human readable, XML file format!" which is almost true- true enough for the unintersted public anyway. Now it's going to be even harder to convince people not to use Word format documents since they have a facade of openness about them.

      Not an improvement in my opinion.

      --
      microsoftword.mp3 - it doesn't care that they're not words...
    3. Re:XML Confers Longevity by kalidasa · · Score: 1

      XML was not intended for this use, though. Just because MS can abuse XML doesn't mean it's XML's fault. XML was intended for use with plain text, to provide the DOCUMENT STRUCTURE (NOT the formatting, which is what LaTeX is for).

    4. Re:XML Confers Longevity by Falsch+Freiheit · · Score: 1
      I'll just stick with LaTeX
      I've some stuff with LaTeX, including documents that get rendered to HTML and to PDF (and PS), complete with links in both, etc. But DocBook can be a better format, and DocBook/XML is probably more "future-proof" and easier to deal with than DocBook/SGML.

      (it's just too hard to get a LaTeX document automatically converted to some formats, where DocBook can do it much more easily, partially because it's less tied to print than LaTeX)
    5. Re:XML Confers Longevity by Fishstick · · Score: 1

      Huh? Wrap binary data? Whaddimiss?

      No,no,no... isn't the point to get away entirely from proprietary formats?

      That's what we're doing here. We're converting all of our technical manuals from Adobe Frame or MS Word to XML (DocBook). The software we're using (Arbortext) sucks the content out of these closed formats and puts in into XML, picking which element to use based on the text styles it encounters in the source file. From there, any XML-aware software can get at the content (we were pretty locked in with Adobe and MS, wnated to escape out of that trap).

      His point makes complete sense to me from my perspective.

      Did we want to still be using frame or word ten years from now? no.
      Were we going to still have our documents around in ten years? yep.

      --

      There is much cruelty in the universe, John.
      Yeah, we seem to have the tour map.

    6. Re:XML Confers Longevity by ae · · Score: 1

      But is there a way to get some nice, printable output from DocBook? It can export to something similar to TeX which you can compile to PostScript with jadetex, but it looks pretty much as if it was written in MS Word---the margins are too small; the font is some ugly kind of Times etc.

      What I would like is a way to convert a DocBook document into a nicely formatted LaTeX document. Is it possible?

      By the way, why does /. strip HTML entities such as &mdash;?

      --
      Blog Ho
    7. Re:XML Confers Longevity by Webmonger · · Score: 1

      I'm converting my web site to XML these days. so "news.html" is generated from "news.xml and "links.xml". What do you think is easier to reuse: news.html or the source files?

    8. Re:XML Confers Longevity by smallpaul · · Score: 1

      Mr. Bray makes a point about the longevity of XML based documents (where he says that tying up documents in a binary format is foolish), but this is a point that (La)TeX users have been arguing for years.

      XML is vastly easier to parse than LaTeX. There are hundreds of generalized XML parsers out there for every language and a basic one can be written from scratch in a few days. XML's very popularity means that XML parsers will probably ship with operating systems for at least the next 20 years. LaTeX uses a syntax that is specific to exactly one problem and thus is less popular. LaTeX parsers don't ship with most operating systems and never will.

      Given a reasonable budget, future archeologists will be able to deal with either. But one could imagine that ten years from now you want to convert your thesis into the display format du jour and it will be too much of a hassle to figure out how to parse all of those backslashes, square braces, etc. That could happen with XML too, but the fact that it is easier to parse could push you over the line.

    9. Re:XML Confers Longevity by abe+ferlman · · Score: 1

      Just because MS can abuse XML doesn't mean it's XML's fault.

      Clearly not. I was only referring to the explicit claim that XML was the solution.

      --
      microsoftword.mp3 - it doesn't care that they're not words...
    10. Re:XML Confers Longevity by Falsch+Freiheit · · Score: 1

      In theory there's ways to get nice, printable output from DocBook. Either the PostScript+jadetex (or openjadetex) methods, or some sort of LaTeX intermediate form... This involves some sort of XSL or DSSSL stuff...

      Unfortunately, in practice, understanding how to do it is hard... For my most recent related project, it started out that it'd live in print, but now it's becoming increasingly important to have a nice online version (preferably broken up into separate sections, etc.) with print being secondary.

      A lot of the ugliness is that the people who put together the stylesheets don't have somebody in their group as anal about typography as LaTeX has.

      (IOW: yeah, if beauty of print is what's important and nothing else, LaTeX is probably still the best option)

      As to &mdash; probably overzealousness on the part of the HTML security bits. At least &amp; works...

    11. Re:XML Confers Longevity by wik · · Score: 1

      > But even though XML documents are not binary, it's not evident to me that it will be easy to render/interpret one of them in ten years from now; doing something useful with it comprises more than just being able to validate the syntax.

      When I heard that MS office was using XML for their file format, I used to joke that they'd just embedded a base64-encoded version of the old binary format in an XML wrapper. For all of its questionable "virtues", XML certainly doesn't prevent people from encoding things in their own buzzword-compliant way.

      --
      / \
      \ / ASCII ribbon campaign for peace
      x
      / \
    12. Re:XML Confers Longevity by smallpaul · · Score: 1

      Here's a good article that describes the problem with LaTeX: http://www.ddj.com/documents/s=862/ddj0107e/0107e. htm

  11. basically why it doesn't suck by xagon7 · · Score: 4, Interesting

    I havn't read the article yet, but XML does NOT suck because:

    1. the data and/or fields added at anytime WITHOUT breaking anything

    2. the data is in a heiracherical format, reducing data replication and allowing for a more sophisticated data structure.

    3. the daya can be changed by a text editor.

    4. and BECAUSE the data is text, it compresses REALLY well.

    1. Re:basically why it doesn't suck by jandrese · · Score: 4, Insightful

      4 is a big old red herring.

      The data compresses so well because it's encoded in a highly inefficent manner. Your average compression algorithm will be able to find more redundancy and give you a better % compressed, but it still won't compare with a human actually packing the data tightly together in the first place.

      or, to take a more information theory POV, there is a certain amount of information in your post, which can be compressed down X percent by default. That same information has to be encoded in the XML version, and has the additional overhead of XML to deal with, so even compresed it will always be larger than the compacted and compresed binary only version.

      XML has a lot of strengths, but compactness is not one of them.

      --

      I read the internet for the articles.
    2. Re:basically why it doesn't suck by apankrat · · Score: 1

      I havn't read the article yet, but XML does NOT suck because:
      1. the data and/or fields added at anytime WITHOUT breaking anything


      not-XML specific

      2. the data is in a heiracherical format, reducing data replication and allowing for a more sophisticated data structure.

      not-XML specific.

      3. the daya can be changed by a text editor.

      One should agree that an ability to poke around what's essentially a *raw* data with a text editor is very very useful property. I simply cannot understand how we've managed to live with (gasp) binary data and (gasp gasp) even to modify it as needed ...

      4. and BECAUSE the data is text, it compresses REALLY well.

      It compresses REALLY well, because it's freaking BLOATED in first place.

      --
      3.243F6A8885A308D313
    3. Re:basically why it doesn't suck by an_mo · · Score: 1

      Re: your point #4 take this simple table with two columns:

      day sales
      1 32
      2 23
      3 22

      And let's write it in xml

      <dataset>
      <row>
      <day>
      1
      </day>
      <sales>
      32
      </sales>
      </row>
      <row>
      <day>
      2
      </day>
      <sales >
      23
      </sales>
      </row>
      <row>
      <day>
      3
      </day>
      <sales>
      22
      </sales>
      </row>
      </table>

      I think you can see the redundancy here. Both are text, no matter how you compress it the second will be larger

    4. Re:basically why it doesn't suck by dsoltesz · · Score: 1


      <day date="2003-03-01">
      <sale id="1">32</sale>
      <sale id="2">23</sale>
      <sale id="3">22</sale>
      </day>
      </salesdata>

      Format to suit your pleasure.

    5. Re:basically why it doesn't suck by Anonymous Coward · · Score: 0

      In your first example, you're using a delimited format where a space represents the next field, and a LF or CRLF represents the next record. Additionally, your format has a rule basically saying that the field names are specified on the first line only, and the data type definitions for these fields are apparently specified elsewhere. Also, it would require the introduction of another delimiter if one wanted to represent multiple datasets with differing fields in a single file.

      In the XML example, you of course tried to underscore your point by inserting unneccessary CRLFs, but as far as the tags go, even a simple lempel-ziv compression would lead to these tags being reduced to a single token byte each, being equivalent to your aforementioned delimiters. The only overhead introduced would be in the LZ dictionary, which would be so small that file size would not be increased anymore than it is by cluster size inefficiencies in file systems (e.g. with 4096B clusters, a 1B file takes up 4096B=4KB on disk).

      Additionally, even the simple DTD you just made up would enable more flexibility in data transfer (such as multiple tables in one file) than your delimited example would.

      HTH.

    6. Re:basically why it doesn't suck by jfb3 · · Score: 1

      2. the data is in a heiracherical format, reducing data replication and allowing for a more sophisticated data structure.

      Seems like you missed that entire generation of Information Management where we left hierarchical (IMS) and migrated to network (IDMS, DMSII), then to relational (DB2, Oracle) data models that allowed for more sophisticated, flexible data structures.

    7. Re:basically why it doesn't suck by evilviper · · Score: 2, Insightful
      The data compresses so well because it's encoded in a highly inefficent manner. Your average compression algorithm will be able to find more redundancy and give you a better % compressed, but it still won't compare with a human actually packing the data tightly together in the first place.

      I strongly suggest you take a complex MS Word document, and convert it into StarOffice 5.0 format, then into OpenOffice 1.0 (XML) format. The filesize of the OpenOffice 1.0 (XML) document will be FAR smaller than either of the previous formats. Add to that the fact that it is using very weak compression (zip) on the XML files.
      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    8. Re:basically why it doesn't suck by JimMcCusker · · Score: 1

      Of course, you can also encode it this way:

      <data>
      <datum day="1" sales="32"/>
      <datum day="2" sales="23"/>
      <datum day="3" sales="22"/>
      </data>

      It's all in the way you encode it. Mine is still more text than yours, but I can take it and move it into another document with no trouble (all the field names are preserved), I can add more fields without worrying about alignment, I can embed that data inside some sort of context, and I can transform it into arbitrary other text (including your table) using a bit of XSLT. All while still being machine and human readable. Your XML is about the most verbose way you can express that data, and it's not even valid :-) (start doc tag is dataset, closes with table).

    9. Re:basically why it doesn't suck by xagon7 · · Score: 1

      We are also missing the fact that most development enfvironments provide ways for coding to XML automatically.. serialising in Java or the TClientDataset in Delphi. This makes your system extensible for when sales comes down the hall screaming that they need smoe new feature in a few days, and makes you cross-platform.

    10. Re:basically why it doesn't suck by Abcd1234 · · Score: 1

      You make an interesting point, but you have to remember, it's very difficult to design a binary format for data which contains no (or at least minimal) redundancy. So, assuming you concede that point, if data footprint is really a big issue for you (and assuming you have the CPU cycles to spare... the argument is different in, say, an embedded environment), the only really good way to ensure optimal size is to compress your data, whether it be binary or text, since a compressor will always be able to do better. And if you're going to compress anyway, you might as well use a nice, readable, interoperable file format, than a closed, cryptic, binary one.

    11. Re:basically why it doesn't suck by jandrese · · Score: 1

      You missed the point. It is entirely possible that the other two formats are just plain less efficent than the XML version (you did check them both when they were compressed right?), but it's not by the nature of the protocol. With XML, the lower bound on the size of the document will be higher than it would be on a pure datastream. That's because the XML document has to encode it's formatting inside of itself, while the datastream's formatting information is tucked away in whatever parser the program uses to read its save files. That information on how to parse the document ads some true complexity to the data, which you will not be able to fully compress away with any general purpose compression. The amount of compression you can get on the actual data is fixed (since it is the same data in both cases), so the end result is that the XML will be larger than any efficently encoded straight datafile.

      Also, beware of doing conversions like the one you mentioned above. Sometimes "unimportant" data is thrown away or added in the conversion (stuff like the creator metadata on the file) in the process, which can skew the results.

      --

      I read the internet for the articles.
    12. Re:basically why it doesn't suck by sporty · · Score: 1

      But the compression a human can do vs a generic algorithm is negligable compared to a full blown XML document.

      Unless your line is under THAT much strain, I doubt the margin of difference matters much.

      --

      -
      ping -f 255.255.255.255 # if only

    13. Re:basically why it doesn't suck by Anonymous Coward · · Score: 0
      I wholly disagree with this concept.
      Think about those "perfect" compression algorithms... They all work on a narrow set of data.

      XML theoretically encompasses ALL data. So it necessarily need to be flexible. This flexibility reduces the "compression" inherent inside the files.

      Yet XML still permits external compression, should it be necessary. This compression can even be 'tuned' to the data it transmits, leading to the potential of greater compression.

    14. Re:basically why it doesn't suck by jbanana · · Score: 1

      You're wrong on point 1. We were having trouble starting an EJB container yesterday which turned out to be because we had introduced a new field: we had a tag where we should have had . Look closely: they are different. Adding things will break your validating parser because it's not in the DTD.

    15. Re:basically why it doesn't suck by jbanana · · Score: 1

      And now that comment again, with the correct formatting. 8~)

      You're wrong on point 1. We were having trouble starting an EJB container yesterday which turned out to be because we had introduced a new field: we had a <Description> tag where we should have had <description>. Look closely: they are different.

      Adding things will break your validating parser because it's not in the DTD.

    16. Re:basically why it doesn't suck by swillden · · Score: 1

      The data compresses so well because it's encoded in a highly inefficent manner. Your average compression algorithm will be able to find more redundancy and give you a better % compressed, but it still won't compare with a human actually packing the data tightly together in the first place.

      All true, but you forget that much of the data we manage is, itself, highly redundant, i.e. text (names, addresses, etc.). That being the case, compressed XML will often be better than some other highly-efficient but uncompressed structure, because general-purpose compression algorithms can try to expoit whatever redundancy is present, regardless of source. Of course compressing your highly-efficient structure would probably yield even fewer bits than compressed XML. But probably not enough to be worth worrying about.

      In practice, compressed XML files are plenty small and retain all of the other advantages of XML.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    17. Re:basically why it doesn't suck by fiftyfly · · Score: 1
      4 is a big old red herring. The data compresses so well because it's encoded in a highly inefficent manner. Your average compression algorithm will be able to find more redundancy and give you a better % compressed, but it still won't compare with a human actually packing the data tightly together in the first place.
      #4 is only a 'red herring' from the advocacy point of view - comming from the 'XML sucks' camp it's a straw man. because XML _is_ rather verbose text it will compress well with a multitude of existing tools designed for such tasks, XML's verbosity, therefore, is not a significant problem.
      --
      "Sanity is not statistical", George Orwell, "1984"
    18. Re:basically why it doesn't suck by tungwaiyip · · Score: 1

      XML is obviously not as compact as binary data format. The question is what is the most important attribute for a data format? Readability and maintainability or efficiency and compactness. The popularity of XML means today people value readability over compactness.

      Is it silly to said XML is compressible when it is verbose to start with? I think this really separate the design into two layers. XML provides data presentation and interoperability. Compression can be applied on top when necessary. Since an XML and an equivalent binary file contain the same information, they should be of similar size in compressed form.

      Don't forget bandwidth and processor speed will only get better. Today's efficiency concern would be irrelevant in the future. Access to legacy data would be a much bigger issue.

  12. What's the big deal? by Telex4 · · Score: 4, Interesting

    I don't get all this fuss over XML. It seems to me that it's just a pretty handy markup language for programmers to use to store data in a human-readable (and therefore human-editable) fashion, that (with the help of things like libxml) also happens to be fairly machine readable. It's also extensible (X- duh!) and yet also has its limits.

    Why are there so many /. stories about this? Can somebody explain why this raises people's passions so? It seems to me like arguing the merits of HTML or SGML - it's all so bloody obvious!

    1. Re:What's the big deal? by Anonymous Coward · · Score: 2, Insightful

      If I have a system and I want to publish some data so that you can read it, we used to have to go through a long song-and-dance routine where we decided what byte-order things were in, and which character sets we were using, and exactly to the bit how various fields were aligned. Once we'd hammered out a 40-page design spec of our interop format, you'd go and code a reader to the spec and I'd go and code a writer. Then we'd come back and find we still couldn't talk to each other because of inconsistencies and ambiguities in our spec. So we go through a couple of weeks hammering those out. Now we're sending data to each other, but actually there's a couple of subtle bugs left in your reader, so you suddenly send a final payment demand for $300,000,000 to a granny in Cardiff, get a mass of bad publicity and are eventually forced out of business.

      Nowadays, this procedure has been replaced by "agreeing to use XML". The parsers are standard and implemented on a wide variety of platforms. They've been extensively debugged - far more time has gone into debugging Xerces than you'd ever have put into a custom format parser. They're Free, in both senses. They're easy to use. They're just - better!

    2. Re:What's the big deal? by DeadSea · · Score: 2, Informative
      I felt this way when I first looked at XML. I said, "Boy, XML isn't that exciting. Its a way of formatting data. Its human readable. Whoop-dee-doo."

      The power of XML comes not out of its syntax but out of the tools that are there for it and what you can do with them.

      The nice (if obvious) tool for XML is the parser. XML is specified so that any computer science undergrad could write one in a couple weeks. As a result, there are a lot of parsers out there and they all do the same thing. This makes XML easily read by machines as well as humans.

      The limitation of XML that you will probably next notice that it does not assign any meaning to data. The same data could be structured in many different ways in a document. For example if you were to describe a zoo in XML, one developer would have animal tags nested within species tags nested within cage tags nested within area tags nested within a zoo tag. Another developer would just have animal tags nested within a zoo tag.

      The beauty if XML is that both of the two developers above should have written a specification for the way they did it. Given this specification (in a standard form) you would be able to take a zoo file and verify (automatically) that it matches this specification. (Doesn't have any stray snackbar tags hanging off a lion).

      Furthermore there are conversion tools that can convert between the tags used by one developer and tags used by the other developer. The name of this tool is XSLT and you can write transformation instructions that do a lot of work in just a couple lines.

      After I knew about these few tools, I started to see why so many developers were excited about XML. There are lots of XML tools out there that I don't know about. I'm sure there are several that I could get even more exited about.

    3. Re:What's the big deal? by utopyr · · Score: 1
      Maybe because I track the XML stories, there don't seem to be that many of them--that many, compared to which other topics, I guess would be the question.

      I agree with you about the passions raised by the topic, & that there does seem a pretty sharp divide. What I've noticed, however, is an interesting change over the past couple of years--where the earlier arguments seemed to split between the enthusiasts, who were using XML, & the skeptics, who wouldn't deign to (oh, yeah, & a third group, but you can chose your own name for them), the anti- camp now seems largely to be those who are compelled to use XML at work.

      The occasional conversion experience is posted, but much less frequently. Anybody have any insight on why that might be? Simply being compelled to use it? Or being compelled without having adequate preparation, say, in contrast to whatever programming languages one might be required to use at work?

    4. Re:What's the big deal? by Nevyn · · Score: 1
      The nice (if obvious) tool for XML is the parser. XML is specified so that any computer science undergrad could write one in a couple weeks.
      hahahahahaha. If by "XML" you mean, something with < and > encoded element names and a small ammount of & "character references". Then, yeh, an ok programer could write something passable in a week or two. However XML isn't even remotely this nice, indeed a wc -l *.c for libxml-2.4.23 is 118,775. But yes, the useful thing about XML isn't XML itself, but the network effects of everyone using it ... much like the internet itself.
      --
      ustr: Managed string API with ave. 44% overhead over strdup(), for 0-20B
    5. Re:What's the big deal? by Anonymous Coward · · Score: 0

      because it increases ad impressions for slashdot

    6. Re:What's the big deal? by cmacb · · Score: 1

      I think the big deal is that everyone is looking for something that will make all programming jobs a piece of cake. XML is just the latest in a long series of "magic bullets".

      I remember storing data on mainframes in a very XML like syntax in the 70's. Just as HTML was as much evolutionary as it was revolutionary, so is XML. The hope is that all of these concepts rolled together will have some sort of critical mass that does for programming what HTML, URLs, and the Internet did for information sharing.

      Personally I don't think this will happen. The problem is that there are already too many very powerful tools out there being misused and XML will not replace these tools but be layered on top of them making matters worse, maybe much worse.

      I remember when SQL was first introduced its major benefit was to provide an easily READABLE syntax for describing relational databases. With a GOOD understanding of your data you could replace large chunks of your application with SQL code that did much of the data crunching for you, and in theory, did it with fewer possibilities for error.

      But what happened next? Systems such as Powerbuilder came along and attempted to relieve the programmer of the headaches associated with managing complex SQL statements. The drag and drop interface built complex (and often faulty) SQL in the background allowing the programmer to turn out pure crap without bothering to have a clue.

      Now I can guarantee you, because I know of people already "studying" XML for this purpose, that there will be people coding PowerBuilder applications to insert XML strings into SQL databases, no doubt using constructs that are specific to Oracle, or DB2. They will be parsing out carriage returns, converting the strings from ASCII to EBCDIC and back again.

      Three years from now when someone tries to analyze the data and asks "why is this field that you told me is critical always zero in all of your data", the answer will be (just as it is now) "The programmer who put all this together doesn't work here any more and nobody else has ever been able to figure it out".

      Large organizations with deep pockets tend to just go out and buy all the latest tools just like us gadget freaks have to have the latest 24-bit color palmtop devices. They train up their people to use these tools and by golly they expect the tools to be used in the next project.

      So, come hell or high water we are going to use Systems Engineer, to automatically turn out PowerBuilder Code and SQL statements to house our XML data that we transfered to the mainframe and ran through the old Cobol programs and back out again, and by the time someone realizes how f*cked up it is our 5 year contract will be up and someone else can worry about fixing it. Yay team!

      These things work great "in the lab" and when carefully applied by true computer scientists. The problem is that much programming these days is done not by computer scientists, but by people who barely escaped from high school. In one attempt after another to create something so simple that even THEY can deal with it we have instead created a monster, or more precisely a series of them.

      I guess the good news is that (as pointed out here recently in the mock interview with the inventor of C++) the ridiculous complexity resulting from all of this will keep smart folks employed for a long long time straightening it all out.

      Of course you have to suspend your desire to accomplish truly usefull products in the short term. That just ain't gonna happen.

    7. Re:What's the big deal? by fiftyfly · · Score: 1
      >The nice (if obvious) tool for XML is the parser. >XML is specified so that any computer science >undergrad could write one in a couple weeks.
      hahahahahaha. If by "XML" you mean, something with encoded element names and a small ammount of & "character references". Then, yeh, an ok programer could write something passable in a week or two. However XML isn't even remotely this nice, indeed a wc -l *.c for libxml-2.4.23 is 118,775. But yes, the useful thing about XML isn't XML itself, but the network effects of everyone using it ... much like the internet itself.

      mmm, IMHO the truly nice thing about xml is the thought of never having to write another parser - just grab an of-the-shelf parser, hammer out a relatively simple description of what we're parsing and go. Done. simple.

      --
      "Sanity is not statistical", George Orwell, "1984"
    8. Re:What's the big deal? by Arandir · · Score: 1

      But that's the point! Don't you get it? That's just the very stuff programmers have wanted for thirty years.

      The solutions over the years have been to either reinvent the wheel or use a tool unsuited for the job. Thus there are one million GROUP:NAME:VALUE config formats, two million instances of storing a two record database in MySQL (because someday you might need to store ten records), etc, not to count the three million application data formats.

      XML gets rid of all that by providing a single standardized generic format suitable for most many disparate kinds of data. Most people opposed to XML seem to be, IMHO, RDBMS afficianados. But XML is not a panacea any more than RDBMS is. It's just as stupid to use XML to index a million customer purchase database as it is to use an RDBMS to save configuration data.

      --
      A Government Is a Body of People, Usually Notably Ungoverned
  13. I agree, XML does not suck by dsoltesz · · Score: 5, Interesting

    As a web developer & admin, XML is my best friend. I have cases where I need non-webheads to develop content (better yet, portable content), and XML is the only way - they only have to know a basic set of HTML tags, they don't have to worry about HTML validation, formatting, or anything else, and everything they generate is consistent!

    Not ony can I transform their content into different views or formats, but (for example) the same XML file that is used to provide software documentation also is used to build the software GUI and provide tool tips and other forms of context sensitive help.

    No database required. No parsing required. Just a couple libraries and tools, and we're set to go.

    1. Re:I agree, XML does not suck by mjh · · Score: 2, Insightful

      I don't know XML. I used to know HTML. It used to be simple and consistent and easy to manage, too. But I don't know it anymore because it's expanded into this monstrosity that requires validation, formating, and whatnot.

      How long will it be before XML, which may be simple and easy to make consistent now, is "extended" into a similar monster, only to be replaced by some other "savior" specification?

      Why is it so difficult for us to recognize that, except for the most basic of things, automation is hard. There's no silver bullet. The job is hard, and as soon as we think we've got one thing automated, we're going to try to depend on that thing to automate the next thing. Then we're going to discover that we didn't do such a good job with the first thing and we'll have to go back and fix it.

      Automation is hard. There's no silver bullet that will make it easy, not even XML. We may think it's going to solve all of our problems, but it won't. We won't know whether it solves anything until we rely on it. At which point it'll break because it's too simplistic, and we'll have to change it so that it's complicated and not simple and then we'll be again waiting for the next "savior". Call me a skeptic, but I don't think there is one.

      --
      Key to financial independence: Spend less than you earn. Save and invest the difference. Do it for a long time.
    2. Re:I agree, XML does not suck by hammy · · Score: 1

      I think you should take a look at the newer versions of HTML and XHTML standards. They've cut out a lot of the bloat by suggesting any presentation stuff go into CSS. It's much more elegant and smaller and easier to understand than previous versions.

    3. Re:I agree, XML does not suck by dsoltesz · · Score: 1

      HTML has always had a recommendation, and always required validation - I have found old files harking back to HTML 1 that would not be valid. Monstrosity? You must be referring to all those cool new features we've been begging for to make our HTML robust and accessible, not the least of which is CSS, which allows me centralize the formatting schemes into one file instead of having to global replaces on 500 (and hope I didn't screw it up).

      Automation is hard? I write a little stylesheet, similar to writing a JSP - HTML with a little embedded code. I can change the layout, formatting, etc. on 100 pages by editing one single stylesheet. A programmer wants to add a new program or document to the structure? She simply creates the XML file - it's automatically formatted, inserted into the tables of contents, and ready to go. In my case, I use make because I want static docs to distribute - my automation involves walking the directories and running Xalan to do the transformation... no complicated at all.

      The programmers focus on writing software. I focus on managing the website and documentation. Life is good, and I don't have to waste my time transforming their text documents to HTML by hand.

    4. Re:I agree, XML does not suck by Fastolfe · · Score: 1

      XML and HTML are completely different beasts. If you're going to compare the two markup families, XML is more akin to SGML (the "parent" of HTML) than to HTML itself. To phrase another way, XML is to SGML as XHTML is to HTML.

      Both XHTML and HTML are implementations atop a simplified lowest-common-denominator. XML itself is much simpler than HTML, precisely because it doesn't specify an implementation (monstrosity or otherwise).

      XML can very easily allow interoperation with just about anything, provided you agree on a schema. If the schema itself is poorly designed, that's a problem with the schema, not the syntax!

      I'm also not sure why you have an issue with validation. Nearly any parser has the ability to determine if the data it's parsing is valid or not. It's just that for legacy markup languages like HTML, the parsers usually are designed to work around bad markup and try to guess what the author intended. This is significantly more work than just throwing an error if the parser fails.

      HTML also requires "formating". How is XML different in this regard? Are you talking about transforming XML into a more traditional markup language like HTML? If so, then yes, obviously if you're going to convert one markup language into another, you're going to need to transform it. Bear in mind, though, that CSS can be used to style XML just as easily as it styles HTML.

    5. Re:I agree, XML does not suck by Anonymous Coward · · Score: 0

      I don't know XML.

      You made that pretty obvious with what you wrote.

    6. Re:I agree, XML does not suck by mjh · · Score: 1

      Perhaps I wasn't clear in what I was saying. My bad!

      I'm not comparing XML and HTML as markup languages. I'm comparing their paths down the road of "the tool which will forever simplify automation". And I'm claiming that expecting XML to be the great savior is as foolish as it was to expect HTML to be the great savior.

      I don't have any issues with validation. I have issues with the assumption that a buzzword will solve all of our automation problems. The buzzword floating around now is XML. Do I agree that XML makes data interchange easier? Yes, I do. But, as another poster says, it all depends on having the same schema. Microsoft storing their documents in XML format will make MS Word no more compatible with Abiword than it is today, not as long as microsoft guards that schema.

      My point is that XML may be the answer, but only for a very specific set of questions. The rest of the problems surrounding automation remain and are not really impacted by XML's success or failure.

      --
      Key to financial independence: Spend less than you earn. Save and invest the difference. Do it for a long time.
    7. Re:I agree, XML does not suck by realdpk · · Score: 1

      "If the schema itself is poorly designed, that's a problem with the schema, not the syntax!"

      This will be what we hear, non-stop, for years, as XML becomes the standard for every document.

      Where once we'll have said:

      "We can't read this Microsoft document because it is using a proprietary format"

      we will say:

      "We can't read this Microsoft document because it is using a proprietary schema of XML"

      and in the end, ultimately, nothing will be different. Except documents will be slightly larger to allow for XML tags. ;)

    8. Re:I agree, XML does not suck by jedidiah · · Score: 1

      Except those that actually do have an interest in genuine information interchange will have a viable rosetta stone to apply to the problem. The fact that there will always be someone around to spoil the party is no reason to not bother with the party to begin with.

      There's more data out there than just msword files.

      --
      A Pirate and a Puritan look the same on a balance sheet.
    9. Re:I agree, XML does not suck by Fastolfe · · Score: 1

      Thanks for clarifying. I agree with your points completely.

    10. Re:I agree, XML does not suck by Fastolfe · · Score: 1

      Ask yourself one question:

      Is it easier to reverse-engineer an XML schema, or an unknown chunk of binary data?

      It's not in Microsoft's best interests (though arguably) that they embrace the XML syntax while using a cryptic, obfuscated schema to mask the meaning of the information within the document.

  14. money laundering via XML by hashmap · · Score: 2, Funny

    send it vith SOAP.

  15. Try to stop seeing things in Black and White by MyTwoCentsWorth · · Score: 4, Insightful

    XML is much better that anything else in certain situations.

    XML is much worst that lots of other choices in certain situations.

    Why can't you see the shades of grey, and insist on seeing all in black and white ?

    Have fun,

    Daniel

  16. Code embedded in XML by CyberGarp · · Score: 5, Interesting

    I saw a letter to Dr. Dobbs recently that was saying that XML needed to have the ability to embed things like Visual Basic and javascript in it to be really useful. I think that this is a horrible idea. The whole point of XML was to have a generic data model, i.e. one parser to rule them all.

    I've been able to do thing like export MySQL schemas into XML, then using XSLT generate an entire set of base classes providing persistent objects. What was once weeks worth of work, now takes an afternoon (from concept to final product). The whole set is entirely consistent, no misspelled names or changed signatures. When bugs were found, I fixed all the files in one place and rerun the XML/XSLT script. Massive productivity boost. If that isn't an argument on why XML doesn't suck I don't know what is.

    The idea of embedding code in XML is a perverse distortion of what XML is really about. XML would suck if one uses it for unintended purposes. I don't use a hammer to tighten machine bolts, well I guess some people do.

    --

    I used to wonder what was so holy about a silent night, now I have a child.
    1. Re:Code embedded in XML by br0ck · · Score: 1

      I just read that Microsoft's XML spec for documents is going to embed script macros anywhere within the XML document. The founder of Sophos says that this is going to make detecting viruses harder and slower since the whole document must be examined instead of just the macro section and that sending these documents in email could soon be an easy way to Dos mail gateway servers. Argh!

    2. Re:Code embedded in XML by poot_rootbeer · · Score: 1

      I saw a letter to Dr. Dobbs recently that was saying that XML needed to have the ability to embed things like Visual Basic and javascript in it to be really useful.

      Considering that all VB and Javascript source code is text-based, you can easily put some code into an XML document. But it's dumb to expect 'XML' to have any internal capability to execute those instructions.

      XML is for storing data.
      XSLT (and many, many other technologies) are for DOING THINGS to data, ie, code.

      I didn't realize there were people subscribed to Dobbs that still don't understand the difference between code and data.

    3. Re:Code embedded in XML by graveyhead · · Score: 1
      XML needed to have the ability to embed things like Visual Basic and JavaScript in it to be really useful. I think that this is a horrible idea.
      I agree that it doesn't *always* need an embedded programming language to be useful, but I for one have used the approach in two separate projects. The first one uses XML as a wrapper for modules in my architecture. This is in lieu of a particular language interface because my project supports code in any language. In this case, embedded code is ideal because classes, methods and fields are substituted for XML, providing a common ground. The document is transformed into pure language code and compiled if necessary to produce a runtime module.

      The other project combines 3d geometry and the code to manipulate it inside an XML document. It is analogous to Javascript affecting an HTML doc.

      Like others have mentioned in this thread, don't look at everything in black & white. This approach is appropriate in my situation, but not necessarily on your average website.

      Although, for those interested, Cocoon is a great framework for building websites out of XML+Java code.
      --
      std::disclaimer<std::legalese> sig=new std::disclaimer; sig->dump(); delete sig;
    4. Re:Code embedded in XML by Cuthalion · · Score: 1

      Here's my take on it (like you care). XML (or HTML) is fine for representing static data. If you want to represent dynamic data with XML, then you need to break it and attach scripting which is, IMO, Evil.

      Evil because now every piece of data needs to have two external representations (in addition to the internal C++ or whatever representation) meaning understanding it is way more complex and implementing is worse still.

      The problem (with this and lots of things XML fails at) is that there aren't many alternative structured data languages, so XML gets shoehorned into all kinds of tasks that it's not great at. UI definition is a good example - DHTML is awful, and all modern skinning engines I've seen are XML based, which leads to a very similar awful.

      Hopefully someday soon someone will come up with a good standard for representing structured dynanmic information. Until then, we're kind of stuck with XML.

      --
      Trees can't go dancing
      So do them a big favor
      Pretend dancing stinks!
    5. Re:Code embedded in XML by kalidasa · · Score: 1

      I didn't realize there were people subscribed to Dobbs that still don't understand the difference between code and data.

      Read the thread. Nearly every XML sucks posting is by people who do not understand the difference between code and data - who do not understand the difference between a programming language (a way to manipulate data) and a markup language (a way to structure data).

    6. Re: Code embedded in XML by Black+Parrot · · Score: 1


      > The idea of embedding code in XML is a perverse distortion of what XML is really about. XML would suck if one uses it for unintended purposes.

      Or you could just use s-expressions, getting a more general syntax than XML with less unnecessary sugar, and the ability to embed code for free.

      (What's the old saying about what those who don't know Lisp are doomed to do? And by how many decades does that saying predate XML?)

      --
      Sheesh, evil *and* a jerk. -- Jade
    7. Re:Code embedded in XML by orac2 · · Score: 1

      Ah, but isn't the fundamental basis (fundamental as in Alan Turing's 1937 "On Computable Numbers, with an application to the Entscheidungsproblem") of computer science the very fact that code and data are not inherently different.

      We usually choose to maintain a distinction for reasons of practicality, but it is wise to remember that the difference is constructed, and the line is easily crossed -- as anyone who has seen a CGI script buffer overflow exploit can tell you.

      While this doesn't have any bearing on the immediate question of directly executing XML documents in some way, I suspect that it does mean that an awful lot of readers of Dr. Dobbs (including myself) are delibrately refraining from "understanding" the difference between code and data.

      --
      "Just once, I'd like to meet an alien menace that wasn't immune to bullets." -- The Brigadier, Dr. Who
    8. Re:Code embedded in XML by boomgopher · · Score: 1

      I saw a letter to Dr. Dobbs recently that was saying that XML needed to have the ability to embed things like Visual Basic and javascript in it to be really useful. I think that this is a horrible idea. The whole point of XML was to have a generic data model, i.e. one parser to rule them all.

      Doesn't xhtml and vxml allow this already?

      --
      Your hybrid is not saving the environment. Its purpose is to make you feel good about buying something.
    9. Re: Code embedded in XML by firewrought · · Score: 1
      Or you could just use s-expressions, getting a more general syntax than XML with less unnecessary sugar, and the ability to embed code for free.

      Both XML and s-expressions are effective ways of representing tree structures, but they tend to work better for different things. As you mention, s-expressions are better at embedding code (and how elegant they are at that! especially for those of us who like to think in terms of second-order function tricks). They also have the advantage of being smaller, easier/faster to edit (with an adequate syntax-hilighting, expression-transposing text editor), and less filled with verbose froo-froo.

      XML, on the other hand, exceeds at being more self-explanatory (because entities and attributes have to have a name, wheras lisp programmers are often content to let things be implied by how its all nested, etc.... no one forces them to use as assoc list for everything). They are also more obviously extendable... a new attribute or entity can go anywhere; you might have to modify the schema (which is a self-imposed constraint to begin with), and you might have to modify legacy apps (if they were dumb-knucks who did not follow the "ignore what you don't understand rule), but at least you have a starting point. In Lisp, the things left unsaid can come back to haunt you when you want to end the data format.

      All that syntax sugar in XML serves a purpose: it communicates higher level design behaviors and intentions. Q: Why did the programmer make something a processing instruction instead of an entitiy? A: Because the programmer was inserting a piece of information that is almost peripheral to the core data model, that is non-hierarchal, and that only needs to be noted by a particular application. Q: Why did the programmer use a CDATA section instead of a text block? A: Because the data is armored binary that is not meaningful to edit as text.

      The power of XML is the power of defaults. True, you could introduce additional conventions on top of s-expressions to allow the self-explanatory structure of XML. You could add mechanisms for specifying schema conventions. You could do all of that stuff, but it would be kinda pointless because by the time you did all of that stuff, you'd have traded the advantages concisenses for the advantages of self-explanatation.

      s-exprs and XML both have their place and their respective areas of usage. For many problems, either one would do just as fine. That said, XML is probably better for most business applications (if the choice is between only s-expressions and XML): all of the conventions that have sprung up around it (XSLT, XML Schema, etc.) will make it a boon for data handling.

      --
      -1, Too Many Layers Of Abstraction
    10. Re:Code embedded in XML by jedidiah · · Score: 1

      Unfortunately, Microsoft is intent on bluring this line. The more effort they expend in this generation, the more effort must be expended to undo it.

      You don't seem to understand that it's ALL data until the destination application gets ahold of it.

      --
      A Pirate and a Puritan look the same on a balance sheet.
    11. Re: Code embedded in XML by jedidiah · · Score: 1

      You make it sound like these LISP programmers are allergic to documentation. That could certainly explain why their pet implemention didn't catch on where XML did.

      --
      A Pirate and a Puritan look the same on a balance sheet.
    12. Re:Code embedded in XML by GrouchoMarx · · Score: 1

      I have to say, um, wow. :-) How exactly did you write said XSLT scripts, and what tools did you use to generate XML representations of the MySQL database? And most of all is it open source? :-)

      The above qualifies as "neato cool reason why XML does not suck in my book.

      --

      --GrouchoMarx
      Card-carrying member of the EFF, FSF, and ACLU. Are you?

    13. Re:Code embedded in XML by Sven+Tuerpe · · Score: 1
      The idea of embedding code in XML is a perverse distortion of what XML is really about.

      XSP is really just fine. Well, it may not be embedding as we used to know it; it is specification of XML-generating Java code in XML. This way it is even able to provide some features typical for scripting languages to Java developers without the need to use the reflection API.

      --
      http://erichsieht.wordpress.com/category/english/
    14. Re: Code embedded in XML by firewrought · · Score: 1
      You make it sound like these LISP programmers are allergic to documentation.

      Some might say that all programmers are allergic to documentation. :-) Let's be honest though... documentation requires programmer thoroughness. It requires active maintenance. And it requires that the docs be accessible when they are needed. The last one is the big zinger: when you come across some legacy file format used to connect different systems, you would like to have ready access to the docs that define that format. Good luck if the relevant (external vendors | internal programmers) have disappeared.

      XML certaintly has a selling point in that, when you use it correctly, future maintainers will be able to infer a lot about the format from a few examples w/o having to dig up the documentation. That said, they're still going to be a lot of problems with people:

      1. choosing non-meaningful element names
      2. throwing everything into CDATA sections as binary
      3. trying to directly parse the XML instead of using DOM/SAX (e.g., because they're newbies who have been let loose with VB or Perl and they don't know better)
      4. trying to represent things in XML that just shouldn't be represented in XML
      5. creating a new schemas instead of developing/utilizing industry standards
      6. using XML as an extremely verbose method of squeezing RPC calls through a firewall (*cough*SOAP*cough*)
      But at least it's a step in the right direction.
      --
      -1, Too Many Layers Of Abstraction
    15. Re:Code embedded in XML by CyberGarp · · Score: 1

      Using MySQL for database.
      Then use phpMyAdmin to export structure to SQL.
      Then use perl SQL-Translator to convert from SQL to XML.
      Then use XSLT (saxon engine) with a script to convert scheme into a set of persistent classes.

      Took one day to figure it out. One day to write the script. Presto, 30 class files and about 1500 lines of code. One day to debug (just had to edit the script). Three days to a set of working persistent classes. The database schema has been updated several times since then. Each time took about 1 minute to update all the code, and I didn't have to worry about typing errors.
      All open source tools.

      --

      I used to wonder what was so holy about a silent night, now I have a child.
  17. If xml was a programming languge.... by Anonymous Coward · · Score: 2, Funny

    <include file="stdio.xml" />
    <function name="main">
    <if:xml sucks="true">
    <printf>XML sucks as a programming language</printf>
    <else>
    <printf>XML rules as a programming language</printf>
    </else>
    </if:xml>
    </function>

    1. Re:If xml was a programming languge.... by kalidasa · · Score: 1

      You have no idea what you're doing. It would be more like this:

      <?xml version='1.0'?>
      <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template match="/">
      <xsl:choose>
      <xsl:when test="extensiblemarkuplanguage='suck'">
      XML sucks as a programming language
      </xsl:when>
      <xsl:otherwise>
      X ML rules as a programming language
      </xsl:otherwise>
      </xsl:template>
      </xsl :stylesheet>

    2. Re:If xml was a programming languge.... by MattRog · · Score: 1

      Hey look - it's COLD FUSION! *spits on ground*

      --

      Thanks,
      --
      Matt
    3. Re:If xml was a programming languge.... by FroMan · · Score: 1

      No, if xml was a programming langauge:

      xslt

      --
      Norris/Palin 2012
      Fact: We deserve leaders who can kick your ass and field dress your carcass.
    4. Re:If xml was a programming languge.... by Anonymous Coward · · Score: 0

      You have no idea what you're doing.
      No closing </xsl:choose>.

      http://www.pault.com/pault/prod/XSLScript

    5. Re:If xml was a programming languge.... by kalidasa · · Score: 1

      So you've never thrown an error due to a typo? You must be a magician.

  18. Why GNU doesn't suck for developers by Tuxinatorium · · Score: 0, Offtopic

    ...They have a great busines plan! 1.) Work hard to develop something 2.) Give it away for free 3.) ???? 4.) Pay off credit cards!

  19. All in the Tools by Greyfox · · Score: 1

    I want something that works like the Database Template Library for XML. It'd be nice just to map XML tags into a structure and suck the whole XML file in using an iterator.

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

  20. Tim Bray's Original Post Was Off Base by Carnage4Life · · Score: 4, Informative

    The main thesis of Tim Bray's original post was that he didn't like having to choose between either storing all his data in memory (i.e. DOM) or using a callbacks(i.e. SAX) when processing XML. The problem with this kind of thinking is that although it may have been true two or three years ago that the only way to process XML was via DOM or SAX this is no longer the case.

    There are more classes of APIs supported on multiple platforms for processing XML such as pull-based APIs and cursor based APIs which are represented by the System.Xml.XmlReader and System.Xml.XPath.XPathNavigator in the .NET Framework. Similar APIs exist in the Java world as well as Python from what I've heard. This is besides the current push in some quarters for programming languages that natively process XML (i.e. intrinsicly understand an XML datamodel or datatype).

    Tim Bray's original problem was that he doesn't have a pull-based API for XML parsing in Perl. I pointed out in my kuro5hin diary how the pseudo code he showed as being his ideal for processing XML already exists in C# and .NET Framework. This article on XML.com points to other people who also point out that such pull-based APIs for processing XML are available on other platforms and languages as well.

    1. Re:Tim Bray's Original Post Was Off Base by Bodrius · · Score: 1

      Care to point to the Java pull-based A
      PIs?

      --
      Freedom is the freedom to say 2+2=4, everything else follows...
  21. everyone should read ... by B3ryllium · · Score: 2, Funny

    this.

    Some of you may already have read it, but it's on-topic nonetheless. :)

  22. France...for shame. by Anonymous Coward · · Score: 0, Offtopic

    For shame France...For shame.USA keeps you around,why?

  23. A bit off topic... by ed1park · · Score: 3, Interesting

    poking around his site I came across this. hehe.

    "Slashdot and Stupidity I visit Slashdot once per day, sometimes more, because they seem to do a really good job of relaying the geek zeitgeist. It's a long time since I read much of the follow-ups, but I thought I ought to this time, and I'm reminded why. How can a publication that caters (on the face of it) to smart people attract the attention of so many shallow, drivelling morons?"

    "Interactivity Again There were a few smart things there in among the chaff on /., and by following back the links in from other blogs, I sure did learn a whole bunch about the state of the programming art as regards XML. Some of the things I said were wrong (or at least open to challenge), and I got fodder for a really substantial follow-up piece, which I'll get around to soon. I don't suppose it's mathematically possible for everyone to get their theses batted around by some tens of thousands of well-informed people, which is a real pity."

    http://www.tbray.org/ongoing/When/200x/2003/03/1 9/ Who

    1. Re:A bit off topic... by Anonymous Coward · · Score: 0

      "But then I realized that it started from the marketing droids pretending to be average slashdot readers and spreading hype and FUD for bogus technologies like XML. I thought moderation could solve this but after I saw these hype posts modded +5, I also realized that the marketing droids own the moderation points. Now, I've made my decissions. I'm gonna be an fp troll. I'll get a nick cmdrTr0ll and I'll embrace the goatse movement. Death to Anonymous Cowards!..."

      His blog goes on like this for several pages. Then it becomes really inconsistent and has lots of ASCII art and goatse links....

  24. XML sucks by Anonymous Coward · · Score: 0

    period.

    1. Re:XML Sucks by 21mhz · · Score: 1
      The structure of
      '(a (href "http://www.cnn.com") (text "CNN"))
      beats
      <A HREF="http://www.cnn.com">CNN</A>
      by a mile.

      Thanks goodness for XML. Nobody is going to make me bend fingers again, trying to come out of balanced parentheses! And if you didn't know, there are lots of XML applications where human coding is implied. XHTML, DocBook, to name just a few. The handiness of tweaking up some machine-generated document is not bad, too.

      --
      My exception safety is -fno-exceptions.
  25. The ironic thing is... by BitwizeGHC · · Score: 1

    I read a Dr. Dobb's article which said basically that plain-text programming languages were dead and this was the Wave of the Future.

    --
    N4st0r, trixx0r h0bb1tz0rz! Th3y st0l3 0ur pr3c10uzz!
    1. Re:The ironic thing is... by kalidasa · · Score: 1

      Plain text *programming languages*? Only an idiot would think that XML is a programming language. XSL is, but XSL is a special case because it usually incorporates XML markup within the output. For most "XML programming" choosy folks use PERL.

  26. XML is just XML by DeepDarkSky · · Score: 1, Informative

    There are shortcomings to XML, certainly. Having worked with it, I know that I've had someissues. But the benefits that it brings (the human readability, the structure, and the parsers that are available for it, etc.), makes it a good thing much more so than a bad thing.

    Programming for XML is more work, but in the end, it forces you to be more structured and disciplined to work with it. You are always working with standard way of constructing data and messages, rather than having to reinvent a new wheel each time, or create your own format that is totally different from everyone else's. It's more work upfront, but for maintainability and as Tim Bray points out, longevity, you can't beat it. They don't called it the new ASCII for nothing (though not completely appropro). Just like there were text editors that can open and edit any plaintext ASCII files, so it is with XML files - if you have an XML editor/parser (and they are almost everywhere, including the humble text editors), you can view it and edit it.

    It's like following coding standards - it's more pain and effort to do it and to do it right, but you will be thankful for it later, and it will be well worth the effort. Those who don't think it's worth the effort probably aren't building anything that is supposed to last for years to come.

  27. XML is fine. The W3C is what sucks by Ars-Fartsica · · Score: 2, Insightful
    The W3 just can't leave a good standard alone. They keep heaping crap upon the good name of XML (e.g. XML Schema) too far ahead of industry demand. Now they are going to end up assenting to multiple DTD alternatives when they start talking about RELAX/TREX etc. What they should have done was waited for industry to determine the best approach (RELAX, not Schemas), and THEN standardize.

    They can't help it though, the W3 committees are infested by the same lifers who destroyed SGML. It would be refreshing to see a standards committee for once run by people who are suspicious of standards committees. Right now the XML world is run by the people who live off of the small cred being on a committee lends to their consulting biz, etc. so they have no motivation to ever finish the committee's works.

    1. Re:XML is fine. The W3C is what sucks by SN74S181 · · Score: 1

      The dilemma you describe is the same one faced by anti-big-government conservatives. They have to involve themselves with the distasteful thing called politics in order to make their attempt to pare it down.

    2. Re:XML is fine. The W3C is what sucks by thogard · · Score: 1

      With the exception of XML (which I think fits well into the "it sucks" category), no one has ever paid attention to the W3C. Look at their html specs. They were all written after the fact and their new proposed spec has been totally ignored by all the major players except where some bit of it suits them. W3C is a committee for the sake of being a committee.

  28. equinamity by syle · · Score: 0, Offtopic
    Can't we all just get along? Let's make a list of what we know for sure.... + Microsoft sucks.
    + Linux doesn't suck.
    + Dell printers suck.
    + Blue-light DVDs do not suck.

    + No one is really sure about OSX.

    --

    /syle

    1. Re:equinamity by Anonymous Coward · · Score: 0

      I would say that certainly at the least OS X doesn't suck.

    2. Re:equinamity by SN74S181 · · Score: 1

      "All we like sheep, have gone astray."

    3. Re:equinamity by NoOneInParticular · · Score: 1

      + Nothing sucks like a VAX

  29. XML is way too verbose by azav · · Score: 1

    XML is acceptible for eyebaling data but when you take into effect how verbose it is, it becomes very wasteful for transmitting over small pipes (modems)

    A simple look up table and RLEing the results with a checksum can offer significant savings.

    For an exercise, try sending a 900 K XML file off to a server and wait till it's done. Then look at the XML and see how you could make it smaller. It's kinda obvious and sad that it wasn't done in the first place.

    --
    - Zav - Imagine a Beowulf cluster of insensitive clods...
    1. Re:XML is way too verbose by Iamthefallen · · Score: 1

      Uhm, then why not translate it to a more compact format serverside before moving it? That's one of the big advantages with XML you know, the ease of parsing, restructuring and formatting.

      --
      Wax-Museum Fire Results In Hundreds Of New Danny DeVito Statues
    2. Re:XML is way too verbose by ttfkam · · Score: 1
      For an exercise, try sending a 900 K XML file off to a server and wait till it's done. Then look at the XML and see how you could make it smaller. It's kinda obvious and sad that it wasn't done in the first place.

      Yeah. It's called gzip.
      --

      - I don't need to go outside, my CRT tan'll do me just fine.
    3. Re:XML is way too verbose by azav · · Score: 1

      Actually, I do a clientside compression process before sending it to the server. This increases complexity and we need the checksum to validate the compressed data and then need to decompress it on the serverside before it is processed.

      This creates an additional complexity factor to the process that takes time and resources.

      So, it costs more to implement. This functionality should have been built in "out of the box".

      --
      - Zav - Imagine a Beowulf cluster of insensitive clods...
    4. Re:XML is way too verbose by squiggleslash · · Score: 1
      I thought the entire original point of XML was portability. If you've converting it while you're transfering data from one place to another, aren't you missing the point?

      There are, after all, always going to be more efficient formats than XML for actually day-to-day storage of information. Still, given Slashdot is full of people who think it's a good idea to store configuration preferences in XML, I don't hold out much hope of it ever being used where it's most efficient...

      (On the plus-side, XML's redundancy happens to be perfect for compression with gzip)

      --
      You are not alone. This is not normal. None of this is normal.
  30. It's all uphill from here. by FreeLinux · · Score: 0

    XML took a massive blow when its co-creator went public and said that it wasn't good and that it was too complicated for developers, generating headlines throughout the tech community.

    Now he returns trying to "clarify" his stance on the matter. But, the fact is that all the clarifications are not going to garner nearly as much interest as the initial statement saying basically, that XML sucks. The damage has been done.

    Regardless of whether XML is good or bad, it now faces a long uphill battle. Having one of the creators of XML deride it was/is a devastating blow to XML and his initial statement will be brought out against XML everytime there is even the slightest resistance to using it in a project. From now on, every time someone mentions XML, someone else is going to say; "It sucks! Even its own creator said so. There's no way we should use it."

    Did you Vote for Linux?

  31. nuts! by SweetAndSourJesus · · Score: 2, Insightful

    I'm running OS X, and it sure sucks that almost all my preferences are stored in easy-to-parse buzzwords!

    XML is very useful. It's not XML's fault that Microsoft isn't implementing it.

    --

    --
    the strongest word is still the word "free"
    1. Re:nuts! by byolinux · · Score: 1

      I'm running OS X as well...

      XML is technically very useful, it's easily parsed, but it's an awfully hyped technology.

    2. Re:nuts! by Anonymous Coward · · Score: 3, Informative
      It's not XML's fault that Microsoft isn't implementing it.
      What on Earth are you talking about? .NET includes a fully-conformant XML parser. How else do you think you can write SOAP web services in .NET?
    3. Re:nuts! by CynicTheHedgehog · · Score: 4, Informative
      It's not XML's fault that Microsoft isn't implementing it.


      Are you smoking crack? I hate Microsoft as much as the next guy, but have you seen .NET? Holy cow. Everything having to do with data sets has been XML-ized, from query results to transactions to SOAP...you can't swing a dead cat without writing a schema first. Look at SQL Server 2000...everything can be done in XML. And then ASP.NET is XML-based (using the convention), and lets not forget the .NET app web.config file, which is XML.

      Granted, MS hasn't backported everything to XML (think we'll ever see an XML registry?) but everything going forward has XML tattooed all over it. I happen to love XML, but if anything Microsoft tends toward the zealous side.
    4. Re:nuts! by Kombat · · Score: 4, Informative
      XML is very useful. It's not XML's fault that Microsoft isn't implementing it.

      Ppppppht! *sprays water all over monitor* Microsoft's not "implementing it?" What in the heck do you mean by that? Have you taken a look at anything in the .NET suite lately? The entire system is built on XML. The solution files, project files, assembly manifests, application configuration files, setup binding files - they're all XML! Visual Studio .NET is build extensively on XML, and the .NET API includes some very intuitive and powerful classes for reading, manipulating, and building XML documents. I suggest you do at least a cursory investigation before spouting something so outrageously inaccurate next time.

      --
      Like woodworking? Build your own picture frames.
    5. Re:nuts! by SweetAndSourJesus · · Score: 1

      OK, so I was completely wrong about that. I haven't taken a look at .NET or any Microsoft technology in several years. I'm blessed with a job that allows me to be completely ignorant of anything they're doing.

      I assumed (very incorrectly), that the parent was speaking from some sort of experience, and that Microsoft had yet to embrace and extend XML. Last time I looked at Windows (2000), there wasn't a whole lot of XML being used in the system.

      Thanks for setting me straight on the matter.

      --

      --
      the strongest word is still the word "free"
    6. Re:nuts! by xtermz · · Score: 0

      If you mean "not implementing it" in the literal sense, I would disagree...

      But...

      if you were trying to convey the fact that MS has embraced and extended the fsck out of XML, thus totally destroying it and not properly implementing it, then yes, I would agree...

      --


      I lost my concept of community when my community lost all concept of me.
    7. Re:nuts! by borgboy · · Score: 1

      XML Registry? Maybe, one day. It's more likely than you think. They made the IIS Metabase an XML file for IIS 6. They're making application and site and user and machine configuration files for .Net as XML. XML as a configuration file format is becoming quite popular here in the land of the Evil Empire.

      Sure they're evil - but they offer great benefits!

      --
      meh.
    8. Re:nuts! by MeanMF · · Score: 4, Funny

      if you were trying to convey the fact that MS has embraced and extended the fsck out of XML, thus totally destroying it and not properly implementing it, then yes, I would agree...

      Micro$oft sure has some balls extending the "eXtensible Markup Language"...

    9. Re:nuts! by IMarvinTPA · · Score: 1

      For some reason, all I can think about now is the scene just before Arthur and Ford are put into the Airlock.

      "Sure the hours are great, but what about the actual minutes?" -Ford

      IMarv

    10. Re:nuts! by mugnyte · · Score: 1

      You're correct, but remember we're going to get a flavor of XML from MS that does not port, of the Office rumors are true.

      MS likes XML, but they use it as a tool like anyone else. They will still draw a bound around value-based technologies and formats to keep the income.

      I don't disagree with it, but keep in mind that MS isn't all free-as-in-beer XML everywhere.

    11. Re:nuts! by Anonymous Coward · · Score: 0

      Michael Moore is a liberal hippie scumbag...
      After we kill Saddam, can we shoot all the hippies?


      Only liberal hippie scumbags bash Microsoft.

    12. Re:nuts! by Anonymous Coward · · Score: 0

      From what i've seen mnicrosoft is goin XML, but their xml is going to be so crippled it isnt even funny. its not really xml, try msxml

    13. Re:nuts! by CynicTheHedgehog · · Score: 1

      Not as much as you would think. They do offer an MS schema that has a lot of built-in datatypes for creating your own XML schema, but that's expected. That's part of why XML schema is so great--you can define and reuse element types. Granted, if you choose to use those extensions then you're marrying yourself to that schema, and therefore to Microsoft, but that's up to you. You can still do alright using the standard XML schema types put out by the W3C.

      (Now I can't speak for the IDE...the tools MS produces probably make use of the extensions whether you like it or not)

      Anyway, down with Microsoft and all that, but I haven't seen them play dirty with .NET yet (at least as far as XML goes).

  32. Java Pull-based APIs by Carnage4Life · · Score: 2, Interesting

    XPP which has evolved into Common API for XML Pull Parsing . I don't believe there is a standard pull-based API for XML parsing in the Java world yet although there is JSR 173.

  33. XML as dough by WetCat · · Score: 4, Insightful

    People who say XML sucks are the people who are forced to look at it and change it by hand.
    But XML is not for that!
    XML is like dough. Nobody eats raw dough (it's probably OK to eat it, but it ISN'T tasty), but eats cookies and bread instead.

    XML is NOT for user and/or administrator usual exposure, XML is for application data transfer.
    And applications that require XML to be written by human are only half done: they should be used in combination with HumanInput -> XML generation programs.

    1. Re:XML as dough by Anonymous Coward · · Score: 0

      Raw dough isn't tasty??? There are times I'd rather eat cookie dough than cookies.

    2. Re:XML as dough by Anonymous Coward · · Score: 0

      I like sticking my dick in raw dough and then I bake that into cookies and sweetbreads and give them to co-workers.

      Besides, Tim Bray was wrong - it's not XML that sucks; it's you.

  34. From a Programmer's perspectice by Fujisawa+Sensei · · Score: 2, Informative
    Why do I like XML?
    1. Reverse engineering a file parser is much easier . If my current document were some reasonable XML file I would not be spending the hours staring at hex code trying to delimit variable formatted recored.
    2. I'm a little lazy, and tired after doing 1 above and I don't want to write my own parsers.
    --
    If someone is passing you on the right, you are an asshole for driving in the wrong lane.
  35. XML precision sucks by jeti · · Score: 2, Insightful

    No. Really.

    There are IEEE specifications for numbers that are exact down to the bit. And processors actually comply to them.

    Now convert your number to text, using a decimal representation (as AFAIK is recommended for XML). What you get is typically not the number you had before.

    1. Re:XML precision sucks by Simon · · Score: 2, Insightful

      Then don't bloody store your number in a decimal representation. If your application requires numbers in a certain IEEE spec format, them output them using base64, or C style 0xaaff1234 format or something. Or you could even do both. Output as decimal and then output a matching [ieee_fp][/ieee_fp] tag or something. XML is extensible that way. There are so many things you could do.

      A recommendation is just that, a recommendation. If you have more important goals then do something more appropriate. XML doesn't even know what a number is. Elements hold opaque chunks of text or more elements. There is no XML number format.

      Also, for most applications decimal format is fine. Quit dwelling on corner cases...

      --
      Simon

    2. Re:XML precision sucks by zog+karndon · · Score: 1

      Then I would suggest that you get a better floating-point to decimal conversion routine. Guy Steele, if I recall correctly, wrote a couple of papers on how to do bit-accurate floating-point to decimal & decimal to floating-point conversion routines. I'm sure that the glibc team would appreciate your contribution.

  36. XML based programming language by Anonymous Coward · · Score: 1, Informative
  37. Why XML? by Anonymous Coward · · Score: 0

    Any reason to use XML vs standard listed csv data files? except spending a lot of extra storage space on tags?

    I guess I should buy a XML book someday..

    1. Re:Why XML? by panurge · · Score: 1
      Try writing a nested csv file.

      And what happens if you want to increase the number of fields in a record with time?
      For one of our applications we use an xml format that is steadily growing with time. Not only the number of fields but the levels of nesting can vary within the "same" message as it develops. The current revision can read all the old messages back to the first one ever, because it can parse the field names.The first ever version of the software can read the latest message, it just doesn't work on the fields it does not understand. And the presentation layers of both versions present correctly. No format converters, no legacy code to handle previous incarnations. The xml simply stores in a database as a blob field.

      --
      Panurge has posted for the last time. Thanks for the positive moderations.
    2. Re:Why XML? by Anonymous Coward · · Score: 0

      The above poster hit the nail on the head.

      If you have tables and tables of flat CSV, XML doesn't buy you anything.

      Once you have some element of data containing or referring to another element of data, CSV takes a boot to the head. To further the analogy, which do you suppose is better:

      (CSV)

      Team,Player,Number
      Sharks,Joe Smith,8
      Sharks,Ben Johnson,12

      or

      (XML)

      <team>
      <player>
      <name>Joe Smith</name>
      <number>8</number>
      </player>
      <player>
      <name>Ben Johnson</name>
      <number>12</number>
      </player>
      </team>

      Given that there are 30 teams, 20 players per team, and a variety of other relational information they share (insurance provider, etc.)?

      Flat CSV apps are few and far between, I expect. Hence the evolution and use of RDBMS and the convoluted set syntax of the SELECT statement.

      If you have structured, relational data, and you want to interchange that data, XML is the way to go.

  38. The L in XML? by Fastolfe · · Score: 1

    It never ceases to amaze me how many people think XML is a language.

    What do you think the L in XML stands for?

  39. You're confusing SOAP with XML - SOAP is the issue by SuperKendall · · Score: 2, Insightful

    SOAP itself is what you're really complaining about being inconstant between your Perl SOAP and .NET - if the documents parse, then XML is working fine.

    I don't like SOAP for most uses as it's overly complex for things like simple RPC style calls. Simple XML over HTTP can work just fine for how most people use the thing - it's not like everyone is doing distributed transactions or things that really take advantage of the SOAP envelope.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  40. Proper SOAP toolsets abstract developers from XML by Fastolfe · · Score: 3, Insightful

    If you're using the proper tools, and programming with the proper libraries, there's no reason you have to dig down into the XML in order to "write SOAP calls". I've used SOAP for a handful of tasks, and I can't tell you anything significant about how the requests are represented in XML. Developers don't necessarily need to know that. If things are breaking for you, and you're having to debug the actual XML data to figure out what's going wrong, then either your toolset is buggy or you're not using it correctly.

  41. It's just a layer by scrotch · · Score: 2, Insightful

    Seems to me that Plain Text is a pretty good document type. Seems that XML is a way of structuring some of that data. Seems that something else has to be layered over that - specifically, the tags that you create.

    So when you read the file, you parse the text, then the XML, then your tags to get your data into a usable state. XML is is just a way of formatting text. That's where the "meta" comes in. It's not a document type, it's just a standard for creating document types.

    The only way XML makes data long lived, is by leaving it in plain text so that it remains open. Your web app will be replaced in a couple of years. Another app can be written that will read your files, because humans can read your files, not because of some Eternal Data Tag that XML applies. Proprietary files could be handled the same way, except that the format isn't open.

    Now, just because you used XML doesn't mean that your format (ie: your tags, your way of breaking up and marking different elements of data) will be eternal. You can break up a big old text file and mark it up, and your bosses will decide months later that they're looking for some piece of information that you didn't tag. Like they want to pick out all first names from within your "customer comments" tag. You re-write your format. You manually re-write your files.

    It might be more useful for Mr. Erikkson to develop a few of these final file formats using XML to present as standards. A suggested set of XML tags for addresses, for example. Do you tag the street name (Main, Elm) differently from the street type (Street, Drive ) or is that all in a single "Address1" tag? Your XML will never work with my program if the higher level formatting isn't agreed upon. And XML doesn't do that.

    1. Re:It's just a layer by nagora · · Score: 1
      Seems to me that Plain Text is a pretty good document type. Seems that XML is a way of structuring some of that data. Seems that something else has to be layered over that - specifically, the tags that you create,

      Or just document your plain text (or your binary) format. XML does not magically enable you to do anything that documentation doesn't. What it does do is magically increase the size of you documents by a factor of 10.

      I have two 26MB XML files on my machine here that contain vector map data from the OS. I'm parsing them with regexs in PHP. It took half an hour to get the first map displayed. If I'd used XML parsers I'd still be at it today.

      I have yet to see any good reason to use XML (other than there's no choice in some cases), and I've been looking for several years.

      TWW

      --
      "Encyclopedia" is to "Wikipedia" what "Library" is to "Some people at a bus stop"
  42. Sammy Sosa vs. XML by bujoojoo · · Score: 1

    Sammy Sosa is 7th on the all-time list of career strikouts; and 2nd among active players.

    Read about it here.

    I'd say XML is analogous to that: perhaps right behind C# among active "players?"

    --
    This space for rent
  43. Slight clarification by SuperKendall · · Score: 1

    These days we have zillions of XML parsers to play with, and they make it pretty darn easy. And it sure is nice to know that when a vendor says they'll give you XML, you can read it. Unless that vendor is Microsoft, of course.

    Oh, you'll be able to read (parse) it... you just won't be able to understand what it means once parsed!! :-)

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  44. How the mighty have fallen by Anonymous Coward · · Score: 0

    I used to enjoy your posts on /., now you've just turned into a Micorosft shill.

  45. Some people just don't "get" XML by binaryDigit · · Score: 4, Insightful

    You read some of the arguments against XML, and you realize that people just don't "get it".

    1 - XML sucks as a language

    Repeat after me, XML is NOT a language. Certainly not in the sense that C++ is a language. XML is a standard that defines how one structures data.

    2 - XML is bloated, I can send binary much cheaper/easier

    DUH. If your application is fine using binary data transfer, then USE it. HOWEVER, many applications that either have to A) communicate with other applications or B) have to deal with varying data sets benefit greatly from using XML. Anyone who has been programming for any length of time knows that while binary is more compact, it is less flexible and potentially more error prone. Want to add a new field in the middle of your data, boy you better not get your software versions mixed. Want to write an app that can do reasonably intelligent things with ANY data it recieves, binary is not the way to go. As with all things in life, use the tool for that which it was intended (vs some peoples view that it is the end all be all of data representation).

    3 - It's slow

    Same as 2 above. If absolute performance is an issue, then by all means, use whatever representation gives you what you need. XML is about flexibility and standardization, NOT performance.

    4 - It's complex

    Well as complex as you want to make it, and it does sometimes encourages more complexity than is really needed, but it doesn't FORCE you into it. If you want/need schemas, go for it. If you need the functionality but in a simpler form, then do that (unless of course you need to communicate with another system expecting a schema, but his is obvious). It's just like C++, you don't HAVE to use templates and multiple inheritence (hell, you don't even have to create classes if you don't want/need), you use the parts of the tool that are useful and provide benefit, you don't use them just because they're there.

    So I don't see what all the bruhaha is about. It has it's strengths, it has it's weaknesses. As with anything, relatively, new, people are trying it in various places. Some of these places not really fit, others do. I've designed apps that benefited greatly, others I've dismissed xml for entirely.

    1. Re:Some people just don't "get" XML by Anonymous Coward · · Score: 2, Funny

      Repeat after me, XML is NOT a language.

      OK
      So what does the 'L' stand for?

    2. Re:Some people just don't "get" XML by binaryDigit · · Score: 1

      So what does the 'L' stand for?

      Good thing it doesn't stand for Beer, or else everyone would try to drink it (because lord knows if you call it a thing, then it is that thing).

    3. Re:Some people just don't "get" XML by kalidasa · · Score: 1

      XML is a markup language. Not a programming language. English is a language. Does that make it a programming language? Of course not.

    4. Re:Some people just don't "get" XML by Jordy · · Score: 1

      Repeat after me, XML is NOT a language. Certainly not in the sense that C++ is a language. XML is a standard that defines how one structures data.

      No, it is a language like English is a language. It has a basic grammar and a small set of verbs (?xml, !entity, !doctype, etc). It is a definition language not a programming language, but a language just the same.

      Anyone who has been programming for any length of time knows that while binary is more compact, it is less flexible and potentially more error prone. Want to add a new field in the middle of your data, boy you better not get your software versions mixed. Want to write an app that can do reasonably intelligent things with ANY data it recieves, binary is not the way to go.

      This is completely based on the binary format and how you've implemented it, not an intrinsic characteristic of binary formats.

      The last binary protocol I implemented was a simple hierarchial key based protocol with the protocol encoders/decoders functions generated via an XML definition and an XSLT transformation. It was essentially just a compacted binary form of XML, but without the parsing or size overhead. In fact, you could read the binary data and generate XML with it pretty easily (useful for visualizing the data being sent back and forth).

      XML is great for a lot of things (storing structured data for long periods and still being able to read it 20 years from now being one of them), but don't think that binary is evil because of problems that exist with certain binary formats.

      --
      The world is neither black nor white nor good nor evil, only many shades of CowboyNeal.
    5. Re:Some people just don't "get" XML by SN74S181 · · Score: 1

      Does that mean the abbreviation for the programming language C is 'CPL' (C Programming Language), and we've been making a big collosal mistake all these years?

      Well! I think there's work to be done renaming all those source files that end with .c to .cpl! We'd better hop to it!

    6. Re:Some people just don't "get" XML by binaryDigit · · Score: 1

      XML is a markup language. Not a programming language. English is a language. Does that make it a programming language? Of course not.

      What I'm saying is that simply having a defined structure with some keywords doesn't qualify something as a "language". Just like spoken "languages". Some ways that people communicate do not contain all the attributes that qualify it as a language. Just because people use it and can communicate with it don't qualify it as a language. Same type of thing. Markup or programming or whatever. A project I worked on previously offered variable replacement for web pages (this was before ASP even existed), you would enter and it even had loops to display lists of information. It had a defined structure and syntax and various keywords. Was it a "language", nope, just a variable replacement mechanism.

    7. Re:Some people just don't "get" XML by Anonymous Coward · · Score: 0
      The last binary protocol I implemented...

      And if one wanted to read your data one would have to implement a parser in every programming language one would be likely to use, which would require getting a correct and detailed spec from you first. Had you left the data as XML Anyone would be able to parse it in any language.

    8. Re:Some people just don't "get" XML by apankrat · · Score: 1

      > 2 - XML is bloated, I can send binary much cheaper/easier

      DUH. If your application is fine using binary data transfer, then USE it. HOWEVER, many applications that either have to A) communicate with other applications or B) have to deal with varying data sets benefit greatly from using XML. Anyone who has been programming for any length of time knows that while binary is more compact, it is less flexible and potentially more error prone.


      Repeat after me - ASN.1 ASN.1 ASN.1

      --
      3.243F6A8885A308D313
    9. Re:Some people just don't "get" XML by squiggleslash · · Score: 1
      Anyone who has been programming for any length of time knows that while binary is more compact, it is less flexible and potentially more error prone. Want to add a new field in the middle of your data, boy you better not get your software versions mixed.
      I take it you've never heard of IFF.

      IFF is a block structured hierarchical file format originally designed by Electronic Arts in the mid-eighties. It's as flexible in terms of what you do to extend a format as XML. Various storage classes were invented for everything from word processing to movies. Unfortunately, the biggest user of it was the Amiga, and it pretty much died with that.

      It isn't a replacement for XML, as you don't have the equivalent of an adhoc DTD in IFF as you do with XML (the various block types were defined centrally, in the end by Commodore I believe, you couldn't point it at a seperate document) but it proves the point neatly that a format doesn't have to be plain text to be extendable in a non-breaking fashion. It's just the obsession with XML's strengths over proprietry binary formats and COBOL-like binary formats has given people the idea that such things are just not possible. Well, they are.

      BTW, of course XML is a language! I think you meant it's not a programming language, but I haven't read anyone suggest that it is.

      --
      You are not alone. This is not normal. None of this is normal.
    10. Re:Some people just don't "get" XML by Anonymous Coward · · Score: 0

      No, you're right, it's definitely not a language. The 'L' stands for... umm... ?

    11. Re:Some people just don't "get" XML by Anonymous Coward · · Score: 0

      XML is a language, but a language for writing grammars, not for writing data

      you can follow the grammar you define when writing your data. The issue people seem to have is that everyone is not good at writing grammars.

    12. Re:Some people just don't "get" XML by Jordy · · Score: 1

      That may be true, but the (de)marshalling routines were only about 100 lines long. I think if I have to implement all the callbacks and calls to the functions anyway, writing an extra 100 lines in another language for new marshalling/demarshalling routines is somewhat minor.

      The XSLT transform was a little longer, but the modifications necessary to move it to another language are trivial. The benefit of not having all that overhead during runtime far outweighed the cost of development (which was about a day and a half).

      Plus I can just reuse the code over and over for anything I choose, just define new commands in XML and away I go. Essentially it is nothing more than an XML version of IDL, but that's beside the point. :)

      --
      The world is neither black nor white nor good nor evil, only many shades of CowboyNeal.
    13. Re:Some people just don't "get" XML by tinguru · · Score: 1

      I don't think language means what you think it means, or maybe we are just not speaking the same one...

    14. Re:Some people just don't "get" XML by shannara256 · · Score: 1
      You read some of the arguments against XML, and you realize that people just don't "get it".

      I'm sorry to "me too", but I've come to the same conclusion. In fact, I'll take it another step: they don't know what they're talking about. The very first page of the XML recommendation spells out why they created XML:

      The design goals for XML are:
      1. XML shall be straightforwardly usable over the Internet.
      2. XML shall support a wide variety of applications.
      3. XML shall be compatible with SGML.
      4. It shall be easy to write programs which process XML documents.
      5. The number of optional features in XML is to be kept to the absolute minimum, ideally zero.
      6. XML documents should be human-legible and reasonably clear.
      7. The XML design should be prepared quickly.
      8. The design of XML shall be formal and concise.
      9. XML documents shall be easy to create.
      10. Terseness in XML markup is of minimal importance.

      In other words, it's portable, widely useful (pretty much any data storage app can use it), easy for both humans and machines to read and write, and in order to achive all this they're sacrifing size. It says it in the first page!

      I guess it's the "when the only tool you have..." problem, but this tool comes with a list of its goals. If a hammer said "The hammer was designed with concentrating lateral kinetic energy into a small area in mind. Exerting or harnessing rotional energy is of no importance.", would people say "hammers suck! they don't work with screws!"?

      sigh...

  46. Questions, questions, questions.... by mnemotronic · · Score: 2, Funny

    • How is "XML" pronounced?
    • Just the letters "X" "M" "L" ?
    • "Zee mul" ?
    • "Smell" ?
    • "A standard until it was compromised by Microsoft" ?

    How do I encode properties (fields) of my data: child elements or element attributes?

    How do I join the preceding-sibling namespace descendent ancestor-or-self following axis of evil?

    --
    The Russians have won. They have made the world a cesspool of distrust, greed, fear and hate.
    1. Re:Questions, questions, questions.... by Dave2+Wickham · · Score: 1
      You forgot one:
      • "CowboyNeaML"?
  47. Electronic Data Interchange (EDI) by Anonymous Coward · · Score: 4, Interesting

    I work for a VAN (Value Added Network) which is basically a middleman for data. You send an electronic purchase order to us; the company you're ordering from gets it from us. The value we add is we'll say you sent and tell you they got it.

    However, we charge by the kilocharacter of data you send and receive per month. So, for us, XML is awesome, because it increases the size of an ASCII-X12 or EDIFACT document by a factor of 5-a lot more (usually somewhere around 15-20 I think).

    X12 and EDIFACT are standards for business document exchange that have been around for a while, but people are converting to XML because they think it's better (eventhough, usually, they just use the X12 or EDIFACT format, but with XML tags).

    For example, a line item record may go from something like this:

    LIN:0001

    to something like this:

    <LIN_GROUP>
    <LIN>
    <LIN_01>0001</LIN_01>
    </LIN>
    </LIN_GROUP>

    It's not always that bad, but it can also be much worse. (Imagine replacing each instance of "LIN" above with "Line_Item" and "LIN_01" with "Line_Item_Number".) (And why won't that semi-colon after the LIN_01 end tag go away?)

    so-- for us, XML doesn't suck-- it increases our revenue. For our clients, it's sucks, because it increases their monthly bill.

    1. Re:Electronic Data Interchange (EDI) by Anonymous Coward · · Score: 0

      Charging by the kilocharacter?!
      What decade is this?
      Are you using telex too.

    2. Re:Electronic Data Interchange (EDI) by Anonymous Coward · · Score: 0

      heh heh. That and more. You wouldn't believe the stuff that still goes on.

    3. Re:Electronic Data Interchange (EDI) by Eryq · · Score: 1

      A shame your XML designer didn't put more thought into it, because they could have just chosen to represent:

      LIN:0001

      as:

      <LIN ID="0001" />

      As for that semi-colon, I don't know what you're talking about: it's not XML. By the way, XML solves the problem of :-separated values with embedded lists; e.g., consider the well-meaning format:

      FIRSTNAME:LASTNAME:PHONE:EID

      All's well until someone comes along with multiple phone numbers. Then we get people hacking in stuff like this:

      Fred:Jones:123-4567;123-4589:24601

      so some app that's worked fine up until now reads Fred's phone number as:

      123-4567;123-4589

      and breaks. Under XML, no accidental breakage of that sort, and self-documenting besides:

      <user>
      <firstname>Fred</firstname>
      <lastname>Jones</lastname>
      <phone>123-4567</phone>
      <phone>123-4589</phone>
      <id>24601</id>
      </user>

      A lot of XML apps which expect a single would probably degrade gracefully by taking just the first or the last one. No need to scramble and recode a lot of libraries just because your data has changed a little.

      You can even add info to the phone element, all without breaking apps that don't look for it:

      <phone type="home">123-4567</phone>

      --
      I'm a bloodsucking fiend! Look at my outfit!
    4. Re:Electronic Data Interchange (EDI) by Anonymous Coward · · Score: 0

      the semi-colon was an artifact of slashdot-- I couldn't get it to go away-- it was in my text entry box, but it was in my preview and post.

    5. Re:Electronic Data Interchange (EDI) by Anonymous Coward · · Score: 0

      er-- I mean, it *was not* in my text entry box.

    6. Re:Electronic Data Interchange (EDI) by Anonymous Coward · · Score: 0

      IMO, Java has the best compromise. Most data in J2EE is in one of two formats, either XML or property files (i.e. a list of "identifier=value" lines). Java makes both these formats easy.

      For mostly flat unstructured data (e.g. resources, language internationalizations, declarations, configuration, even simple SQL query results) property files are ideal since their easy to read and change. XML is just plain overkill.

      Once you start structuring data, property files start becoming inconvenient to use and unreadable (yes, you can use tricks like declaring your lines as "identifier.sublevel.subsublevel=value" but it quickly gets out of hand). This is where XML shines. Your data is already complex, but XML gives you the ability and the tools to structure and restructure it any way that's most convenient to use.

      In your example, properties make a lot more sense. To me, a properties file consisting of the single line:

      Line_Item.Line_Item_Number=0001

      is a lot more readable, a lot easier to work with (just call the load() function on a java.util.Properties variable) and a lot less bandwidth intensive than your XML equivalent.

    7. Re:Electronic Data Interchange (EDI) by brauwerman · · Score: 1

      um....

  48. Yes, but... by gillbates · · Score: 2, Insightful
    The only way to achieve interoperability at the software interface level is for there to be exactly one implementation - for example Perl or Linux.

    Hate to burst your bubble, Tim, but this is the same justification that Microsoft to defend their monopoly on PC operating systems. There wouldn't be any portability issues if everyone used Windows(but there might be stability issues!)

    And I agree with the notion that standards are a good thing, however, I have to be realistic at the same time. Any standard sufficiently broad to cover all of the possible bases will be so general as to be useless, or at the least, very inefficient in a large number of cases. The reasons why different standards crop up is because different users have different needs and values. In the UNIX community, portability, stability, and interoperability are highly regarded, where as in the Windows community, flashy GUI's and speed are often more important. Hence, two widely different systems.

    The portability of XML is nice. The fact that it can represent just about anything is also nice. But the nature of XML precludes indexing, which means if I'm searching for a particular record in an XML dataset, I might have to read the entire file. Not a problem for small databases, but for mainframe size databases, this is simply unworkable.

    No, XML doesn't suck. But then again, it's not a silver bullet either. Need I say the adage about hammers and nails?

    --
    The society for a thought-free internet welcomes you.
    1. Re:Yes, but... by Anonymous Coward · · Score: 1, Insightful
      Hate to burst your bubble, Tim, but this is the same justification that Microsoft to defend their monopoly on PC operating systems.
      Well, yeah, that's kind of his point. Read it again, and try to understand that he's saying that "exactly one implementation" is a Bad Thing.
    2. Re:Yes, but... by jedidiah · · Score: 1

      That's nice and all but there are multiple implementations for the standards he was complaining about. This includes the standards that would fit under the umbrella of "Linux".

      There's nothing on Linux in terms of API's that requires the usage of Linux. Even X11 isn't a limitation at this point.

      There's no reason that "Linux programs" can't run on any OS in existence.

      Thus perversions like Irix Quake3.

      --
      A Pirate and a Puritan look the same on a balance sheet.
  49. Recents improvements by Anonymous Coward · · Score: 0
    The problem with this kind of thinking is that although it may have been true two or three years ago that the only way to process XML was via DOM or SAX this is no longer the case. There are more classes of APIs supported on multiple platforms for processing XML such as pull-based APIs and cursor based APIs which are ...

    Vast improvements were made almost a year ago... ;-)

    -- Arien

  50. Re:Dear Slashdot: Why does religion suck? by Anonymous Coward · · Score: 0

    Amen, brother. Amen.

  51. Just do one thing for me by Reality+Master+101 · · Score: 2, Interesting

    Just make </> close whatever the last tag was. That instantly cuts the size of the files in almost half, and makes them easier to read as well.

    And yes, it could be confusing in a heavily nested file, but nothing says you have to use them. It would be a godsend for database columns.

    --
    Sometimes it's best to just let stupid people be stupid.
    1. Re:Just do one thing for me by illtud · · Score: 2, Insightful
      Just make close whatever the last tag was. That instantly cuts the size of the files in almost half, and makes them easier to read as well.

      Spot the 'lite' user of XML. If you're dealing with anything of any size, complexity or (let's face it) use, then that's a really good idea for unmaintable, buggy XML.

    2. Re:Just do one thing for me by Reality+Master+101 · · Score: 1

      If you're dealing with anything of any size,
      complexity or (let's face it) use, then
      that's a really good idea for unmaintable,
      buggy XML.

      Sheesh, which is why I specifically stated that you don't have to use it if it doesn't make sense. Apparently you don't have much experience with a lot of different uses for XML. You know, sometimes bandwidth matters. It's just stupid to have end tags for things like:

      <clients>
      <row>
      <client_name>Joe's Grill</client_name>
      <bill_by_credit_card>Y</bill_by_credit_card>
      &nbs p; <bill_home_address>N</bill_home_address>
      &nbsp ; <has_multi_locations>N</has_multi_locations>
      &nbs p; ...
      </row>
      <row>
      ...
      </row>
      </clients>

      (Slashdot' s "code" mode is butchering the formatting)

      --
      Sometimes it's best to just let stupid people be stupid.
    3. Re:Just do one thing for me by 21mhz · · Score: 1

      You can choose terser names for elements.
      Overall, if you're concerned with size of your XML data, you have lost. Compress it if you must, or don't use at all. But don't suggest removing restrictions that were put there to guard exactly against "great" ideas like yours.

      --
      My exception safety is -fno-exceptions.
    4. Re:Just do one thing for me by tinguru · · Score: 1
      Augh, no. You can't make a change to XML and just say "you don't have use it." Everybody who wrote a parser then needs to rewrite thier parser. Everywhere I read XML I have to check for you f-ed up end tags.

      I think XML has only changed once since it came out; mostly b/c of a change in Unicode, which it references. That is the best thing about it -- the format does not change.

    5. Re:Just do one thing for me by doom · · Score: 1
      Just make </> close whatever the last tag was. That instantly cuts the size of the files in almost half, and makes them easier to read as well.


      And yes, it could be confusing in a heavily nested file, but nothing says you have to use them. It would be a godsend for database columns.
      The people I know call that: Ostensible Markup Language (OML)

      The point is that if you're just doing something simple, like say dumping a database table to a file with code you've written, which you're going to read later with code that's also under your control, maybe you don't need the full-blown XML business. But "Ostensbile Markup Language" is close enough to XML that you can still parse it with some XML tools, like the perl package XML::Simple.

    6. Re:Just do one thing for me by ignavus · · Score: 1

      Why do the peaceniks never ask Hussein to step down and free the country?

      Wow! So all we have to do is ask Bush to step down, and we can free the US too?

      --
      I am anarch of all I survey.
  52. XML==Hierarchical database? by plopez · · Score: 2, Interesting

    It has been my observation that much of 'XML' work with the query engine extension has been a recreation of hierarchical databases. But relational databases were designed to overcome hierarchical databases' failures. It seems we are turning back the clock. For a good critique of XML, C. J. Date's site has an article critical of XML http://www.firstsql.com/dbdebunk/

    --
    putting the 'B' in LGBTQ+
    1. Re:XML==Hierarchical database? by prestidigital · · Score: 1

      XML != Hierarchical database. Not much more to say than that b/c the two are just not equivalent...period.

  53. XML is really nice by amalcon · · Score: 3, Interesting

    Two words:
    Human-readable.

    As a programmer, this is the most useful property a data stream can take on. Why? Debugging. The reasoning here is twofold:

    1. Non-parallel development of opposite ends of the data stream:
    It's quite a challenge to develop the code which produces the data and the code which uses the data at the same time. If it doesn't work, you don't know where the problem is. With a human-readable format, you can simply pipe the data in or out of the app directly from a text file, and verify that it's correct yourself.

    2. Debugging:
    Something of an extention of the previous, if you have two bits of code communicating through XML, you can log the bad transmission and read it yourself to find out if the bug is in transmission or reception.

    Now, I won't pretend that XML is the only human-readable data-structuring format, but it has a lot of nice advantages over the others, each of which is covered in the article. XML makes apps a pain to develop, but a breeze to debug--and the debugging is far more important!

    --
    -Amalcon
  54. Solve this Problem by Enonu · · Score: 2, Interesting

    Let's say you are using XML to store the class rosters for your school. Assume the structure, . This has the advantages of being the easiest to parse, you create your data-structure and it's finished, and lastly, writing XSLT to convert your XML to HTML is a piece of cake. However, it's both redundant in the XML itself and in memory.

    Assuming something more efficient, like <class><studentId>, where you simply reference students by an id rather than inlining each student's data, removes the reduplication problem. However, everything else becomes harder. First, you have to be able to reference a student by its id, so you use a hashtable. Next you either have to require that student data comes first, or you have an update phase where you update each of your class objects. Lastly, XSLT isn't cake anymore (show me the roster for class X including all the students details).

    Although this problem exists in any other application that parses data that contains internal references, it's still a major pain-in-the-ass.

    What's the best way to tackle this situation?

    1. Re:Solve this Problem by Artful+Codger · · Score: 2, Informative

      To me your structure is wrong. When designing an XML layout you really have to think through all possible use-cases.

      Assuming that there would be many attributes attached to students, and the classes for a given student are likely to change, I would go:

      abcde
      and other personal fixed stuff
      bio101
      and repeat the class tag for every
      class the student is in

      more students like above

      You then have a separate XML file of classes

      Warshawsky (or use an ID here and have a separate XML file of instructors)
      _
      _
      _ ... and so on

      You then "join" the different files in the transform to pull out specifics. It's very much like SQL joins from among normalized tables.

      If the above seems very difficult, you probably need a good book. I found "The XML Bible" to be useful when I was learning this stuff.

      --

      ... plans that either come to naught, or half a page of scribbled lines...
    2. Re:Solve this Problem by Artful+Codger · · Score: 1

      Bugger. ./ stripped my tags. sorry. No time to re-do

      Anyway the point was, have

      (students)
      and for each (student), list their classes there by some unique ID, then have a separate XML file containing all the classes and their details.

      --

      ... plans that either come to naught, or half a page of scribbled lines...
  55. XML Basis for Next Version of HL7 by Anonymous Coward · · Score: 0

    In the Health Care Industry, XML is going to be the default format for transaction processing (due to HIPPA regulations). The problem with this format is the amount of storage and extra bandwidth required to send/store the meta-tags. Currently, the transactions are delimited or fixed format, with the systems using the offset to determine data content.

    So instead of having (delimited with a pipe):

    |SIXPACK^JOE|100 OAK STREET|

    we have

    SIXPACKJOE100 OAK STREET

  56. United States of America under God by Anonymous Coward · · Score: 0

    Don't you remember these fond words? Does that mean nothing to you? Whether you know it or not,God is what binds us all together.Well our souls I mean..You know what I mean.If not,you will,if your present of mind as your life ebbs away (later rather than soon of course my son!).

    Good luck finding your eternal bliss.You'll be ok..I believe it.

    1. Re:United States of America under God by Anonymous Coward · · Score: 0

      Yes, our country was founded by religious people. A long time ago. Religion is a tool to control the weak minded. Every country believes they are under some deity's blessing.

      If you lived in ancient Greece would you believe in their gods? Would you arrogantly argue that they exist? Today it is easy for us to laugh. Perhaps in the future people will laugh at those who believed in the christian god.

      And I love how you resort to standard religious crap: threaten that you must come to god or feel his wrath!

    2. Re:United States of America under God by Anonymous Coward · · Score: 0

      Sir, I do not live in ancient Greece and am not faced with the decision of such a complex system of gods.I'm sure if faced with my mortality,I'd have just chosen the one best suited for my needs.But that is a moot point.

      The new Christian god serves pretty well in it's capacity I'd say.Listen.We could shoot the shit about our salvation,but frankly I'm not so sure your interested in MY views.

      God is bearing down on you,so as the ancient Romans would say,don't look a gift horse in the mouth.

    3. Re:United States of America under God by Anonymous Coward · · Score: 0

      You make a great christian. When faced with threats to your mortality, you will choose the side that promises salvation... even if it's all a lie. Way to go!

    4. Re:United States of America under God by Anonymous Coward · · Score: 0

      Sure, don't look a gift horse in the mouth in front of the giver, since that shows ingratitude. But you'd look it in the mouth (to check for disease) at home, before you put it in with your prize stallions, right? You should never seek out ignorance. I'll bet the Trojans weren't spouting that particular adage after the Greeks visited. :)

      I have never thought much of the argument that one should believe in an afterlife, God, etc. because life is more enjoyable when you have answers to the upsetting aspects of unpunished evil deeds, death, disease, etc..

      Sure, I'd be happier if I believed. But I don't just "decide" to believe in something that all of my reason indicates is false simply because it would make me feel better.

      The simplest explanation is that the various religious ideas were developed by humans over a long period of time, to furnish comforting answers to the questions that we can't answer. Think of a hugely long-term collective defense mechanism.

      The simplest explanation is NOT that one of these thousands of differing religions is actually *right* and everyone else is going to hell. If there is a God, and that's his game, I certainly wouldn't worship him.

    5. Re:United States of America under God by Anonymous Coward · · Score: 0

      Very good comments! That's exactly how I feel... I think it is rediculous to believe something just because it makes you feel better. I am an intellectual type and enjoy proof in my beliefs.

  57. XML definitely does not suck, XSL does somewhat by Artful+Codger · · Score: 3, Interesting

    ... Like most of folks here, we've successfully used it in several situations, across different languages (Java, Perl, ASP) and different purposes(configuration, data transfer, web page generation, small online data storage, etc). It's da bomb.

    XSL/XSLT on the other hand can be a pain to use in anything other than trivial transforms, in my unschooled opinion. The concept of recursive processing is great, but the math/logic syntax available is byzantine (eg "variable" is really a constant).

    *sigh* I know this will get modded offtopic, but seriously... anyone agree with me, or do you actually like writing transform logic and processing in XSL? Please comment.

    --

    ... plans that either come to naught, or half a page of scribbled lines...
    1. Re:XML definitely does not suck, XSL does somewhat by pi_rules · · Score: 1

      I liked XSLT once I got used to it. It's a big step to make going from a functional programming language style to something that's more of a pattern matching state machine, so there' some initial confusion. In the end though, you can get some really powerful stuff with it. Probably doesn't lend itself to maintence very well though, as you have to "grok" the entire scheme of things to figure out how things got from point A to point B.

      The simplest way to explain it is it's the difference in parsing strings with strtok(), for() loops, and character arrays vs regular expressions. Sure, the regexps can get hard to understand, but once you "get" it there's less mystery and less chance for odd things to occur. It's very concise, just like XSLT is.

      This particular application was taking PDM data from an RDBMS and pulling it up into a set of Java objects. The objects handled manipulation of their structures, which wrote back to the DB, and all supported an interface with let them serialize themselves out to XML. You serlized the top-level object which would start serilizing children, and they serialized their children, etc. You got a nice XML tree when you were done to dump to disk and XSLT it over into HTML or XML:FO. Worked wonderfully if you asked me. I couldn't have imagined trying to do something so easily without the use of XML/XSLT.

  58. XML is a primary innovation by ites · · Score: 3, Informative

    In the last five years, XML has - for instance - completely revolutionized the way my company writes software. We use code generators that mungle XML definitions into templates (imagine PHP controlling the generation not of HTML but of C or... PHP, and using XML to specify the abstract model in question).
    We don't need schemas, stylesheets, xpaths,... just simple XML. And yet we can write very rich code in XML instead of in native code. Today we're producing about 25 lines of final code for 1 line of XML, and we're pushing this up all the time. My current project generates workflow engines from XML definitions, building a 10k workflow application from a single 500-line XML file.
    My point is that XML is not just a handy way to store data. It is a meta language, able to formally define any concept, no matter how abstract. This is an incredible but subtle thing. The power comes not from XML technology itself, which is really very, very simple once you ignore the W3C fluff. The power comes from the freedom that XML technology gives you, namely the ability to abstract your problem to as high a level as your mind can take it, and to solve it at that level.
    This is difficult, and takes time, but as the XML space settles down it will become clear that this is the real value of the technology.
    The 'con' arguments all appear to be related to people trying to use XML in the wrong place, for the wrong thing, or to replace existing abstractions that work perfectly well.

    --
    Sig for sale or rent. One previous user. Inquire within.
    1. Re:XML is a primary innovation by Anonymous Coward · · Score: 0

      Yeah, but you couldn't you have done all that with S-exprs too?

    2. Re:XML is a primary innovation by ites · · Score: 2, Interesting

      It's a good question. We spent a *long* time working with structured data formats like S-exprs between 1991-1997, and although these do support the basic technique of abstracting your way up the expression ladder, XML adds a few small but highly significant things. Some of these are intangible: general acceptance as a standard. Some of them are more concrete: solid support for non-USA languages. Some of them are incidental: wide availability of parsers in any language. Some of them are subtle: essential simplicity.
      There is something about lowering the barrier to a point where virtuous feedback becomes not only possible with effort, but easier than anything else. I think this is what XML does to abstraction, more than S-exprs, SGML or any of the many other formal/semi-formal structured data languages that existed before.

      --
      Sig for sale or rent. One previous user. Inquire within.
  59. He-e-e-e-e-e-e's Safe! by jefu · · Score: 1
    Actually I think the original post ("XML Sucks") was pretty much on base - the points he made were excellent. That there are API's that process XML the way he wanted it does not negate his points - and that he did not know of them may have helped make some points about the size of the XML universe these days and how quickly it is growing.

    (Parenthetically (Duh!) for similar problems though I sometimes written an XSLT filter to reduce the size and complexity of the original data set, then used a DOM style reader on that. So I'd rather like an API that would let me do that more easily.)

  60. XML for Koan by SuperKendall · · Score: 2, Funny

    From article:
    "XML Can Represent Pretty Well Anything"
    "XML has been used to represent, without loss of information...yearly calendars, and Zen koans. OK, I don't know for sure about the koans."

    <koan attribute_to="Chao-chou">
    <question asked_by="random monk">
    Does a dog have Buddha-nature or not?
    </question>
    <response master="true" smileQuizzically="true" useMuResponse="true"/>
    </koan>

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  61. Because by gr8_phk · · Score: 0

    It has no lips, lungs, or tongue.

  62. *Ahem* by Anonymous Coward · · Score: 0

    Binary Lexical Octet Ad-hoc Transport.

    I can hear the gears whiring away...

  63. Watch the strawman burn! by ttfkam · · Score: 1

    Yes, you're right. Your extremely simple dataset would be more compact in that non-XML format.

    Now, let's say that someone wants to include notes with those entries. For example, on day 1, "The Pepsi deal finalized." On day 2, "Lightning took out the business park power transformer so that work was suspended for four hours." Seems like a legitimate request, right?

    In your format, you must make absolutely certain that no \r or \n charaters make it into the notes. "Easy enough," you say. "That's a short Perl one-liner."

    Now someone wants not just the number of sales but the daily revenues to be included (Picture a red-faced boss screaming about how she doesn't care how many nickle and dime jobs were sold but the amount of money coming in). Hmmm... We can't put the revenues after the notes because we have no effective delimiter. We could put the notes in quotes, but then we must escape out all of the quotation marks in previous entries *and* retool our parser to look for quotes. Then again, you could put the revenues before the notes. Once again, you head back and fix the parser.

    In XML, you simply add <note> and <revenue> tags. As a bonus, XML would allow for multiple notes per day. Make a DTD, XML Schema, or (better yet) RelaxNG document for your format, and you have an easy method of finding any errors without touching code and without tying your self to any particular programming language.

    Yes, there's always BNF. But BNF is harder to write than RelaxNG. There's also the issue of tying the BNF to the document. XML handles this through the use of namespaces. I'm sure you could find a way to tie your documents to your BNF file. You've reinvented the wheel everywhere else, why stop here?

    Finally, how does your format handle i18n? Is your parser UTF8-aware? You know that in some languages (those crazy Asians), UTF8 is more bulky than UTF16 or UCS2 right? Big5 and Shift-JIS are in heavy use as well. Make sure not to forget your chartype transcoder.

    By writing your own file format, your own parser, and your own validator (you did write a validator, right?), you are spending extra time only to have to spend extra time later. Chances are, your task isn't writing a parser. Let others handle the job of parsing and get on with doing what you really need to do: get the job done.

    --

    - I don't need to go outside, my CRT tan'll do me just fine.
    1. Re:Watch the strawman burn! by Paradise+Pete · · Score: 1

      Seems you have constructed your own straw man. While what you said was interesting and educational (to me, at least), it addresses statements he didn't make. All he said was XML isn't compact, even when compressed.

  64. XML is a great data format... by Anonymous Coward · · Score: 0

    ...for me to POOP ON!!!

  65. some other nasty things about xml by u19925 · · Score: 1
    there are some other stuffs that i don't like or it is just a rehash of what others have pointed out earlier. all of these issues are from programmers point of view and not for reading or writing xml.

    * attributes and elements and mixed contents complicates programming. now you have too many different types of fields tied together in an ugly manner which introduces all sorts of programming complexity. i would rather have only elements.

    * although xml is verbose, it has done some corner cutting, like empty element can be written as <element/>, or can be written as <element></element>. Different parsers treat these two things identically or differently, this again introduces some bugs. there should be exactly one syntax.

    * white spaces: no easy way to handle this. either will look ugly in text editor or will require extra programming effort.

    * comments: Comments are extremely hard to read too. also from programmers point of view, comments are ambiguous. should they be preserved or discarded? no clear guidelines.

    * No private elements: when i write an xml documents, i would like to put additional private information. the only way to write this now is using comments, but that is not structured. there should be a way to write structured comments too. this is not there in c/java/c++ etc too. java uses /**...*/ notation to tell it is a javadoc comments. this is a hack and some central body has to enforce it. there is no built-in way. also sun uses special javadoc tags to indicate fields within javadoc elements. again this is a hack. why doesn't xml have a built-in way of structuring comments so that all parsers, viewers would honor it?

  66. Good For Interchange / Bad For Applications by danmil · · Score: 3, Insightful

    Most of his (excellent) points have to do with exchanging data between applications (with long-term storage being essentially a special case of that). And he's right -- for those, XML is a huge win, and we should all bow down and worship at its feet.

    However, because XML is such a huge buzzword now, people are proposing (or insisting on) using it as a format at the heart of complicated applications. Where anyone would have said 'Use a database' a few years ago.

    In doing so, people are losing sight of the essential beauty of the relational data model. With a RDBM, you, the programmer, have tremendous flexibility about *how* you view your data. This is a huge win inside of an application. XML forces you to commit to one specific view of your data. Yes, if that data needs to live forever and yes, if that data needs to get sent to someone else, than by all means, store it in an XML file. But if you need to *do* something with that data, you're going to be much happier with a relational db.

    -Dan

    --

    I have written a truly remarkable operating system which this sig is too small to contain.

    1. Re:Good For Interchange / Bad For Applications by pmz · · Score: 2, Interesting

      XML forces you to commit to one specific view of your data.

      This is why XML serves best as an interchange format, where files are immutable snapshots of more complex data sets. Perfect for EDI-type apps or reports, but not for "live" data.

      I know from experience with MCAD files (Pro/E, etc.) that static snapshot-type files are much easier to generate and work with than "live" files (files that are modified, stored, modified again, stored, ad nauseum). This is because data that changes over time has to stand up to such wear and tear without wearing out (i.e., the data model has to be outstanding and elegant), but snapshot data models can be pretty crappy and still get the point across.

      Basically, my point is that 1) I agree with what you said and 2) XML does nothing to avoid the fundamental difficulties people already cope with in every data format ever invented (i.e., data models are hard and people should just live with that fact and stop whining).

  67. Wait - so XML sucks again, right? by nule.org · · Score: 1
    Let me try to get a grasp on your argument here, Tim... Last time you wrote an article about how XML sucks and were bemused that people thought you were saying that XML sucks. Now you write an article about how XML doesn't suck so, um, you want us to think that you really think it sucks again, right?!

    Whew. Thanks for straightening that out for me. I was worried for a moment that I'd have to stop hating XML again.

    I think everyone was aware before either of these articles became part of the collective, that like any other technology, XML isn't always the best solution. I think this is more news because the author of a widely used technology is actually stating this obvious fact. Go ahead and ask a company what their product isn't best at or where another techonology or product might do better and I bet you'll hear a lot of stammering (unless they have a much more expensive product to sell you...). So good for Tim for airing these thoughts.

  68. Nope, no contradiction here. by Jerf · · Score: 2, Insightful

    No. There is no contradiction between "Current XML parsing solutions suck for programmers." to "XML is a good thing overall." It's not a 360 [sic], because those are two seperate dimensions entirely.

    RTFAs.

    (One could argue that no good parsing solution is itself a weakness of XML, but IMHO the problem is that we got stuck going down the wrong road(s) for parsing, with SAX and DOM, both of which look good on paper but lack a certain practicality. If in five years there's still no good solution then maybe it is XML's fault.)

  69. XML: Good for some things, horrible for others. by BitwizeGHC · · Score: 1

    I can see XML finding purchase in the same kinds of things HTML and SGML were used for: document-type representations where the amount of text in between the start and end tags is much greater than the amount of markup.

    Things like databases, RPC calls, freakin' programming languages (I didn't make that stuff up about XML programming languages being said to obsolete normal languages in Dr. Dobbs), stuff like that, would probably benefit much more from a format that isn't as cluttered as XML.

    Look at an old-school NeXTStep-style propertylist, and look at one of the new Mac OS X XML propertylists, and tell me which one looks better, and easier to edit.

    --
    N4st0r, trixx0r h0bb1tz0rz! Th3y st0l3 0ur pr3c10uzz!
  70. XML only sucks if you apply it where XML sucks... by Bedrock · · Score: 3, Insightful

    I work for a publishing services firm that is focusing on XML-based production of print and online materials, ranging from books to scientific journals to grade-school testing applications.

    Simply put, XML is the best tool available for storing content to be databased, searched, rendered in multiple formats and broken apart and reconstituted into custom documents. XML also lends itself nicely to the representation of complex mathematics using MathML. Because of this, we've based many of our production processes on XML.

    One particular journal we produce is a heavily mathematical, 250 page weekly scientific journal. This journal is produced in both print and online forms, as well as being databased by the publisher. Using tools such as Arbortext Epic (www.arbortext.com) for content editing and Advent 3B2 (www.advent3b2.com) for semi-unattended formatting we are able to produce the journal with a staff of only 10 people. A year ago, it took twice as many people and the end product was not nearly as flexible. In this application, XML rocks.

    However, using XML in every application imaginable without considering whether or not it's the appropriate tool can be quite foolish. A hammer is great for pounding on things, but is pretty worthless in nearly every other application. A lot of the frustration felt by coders implementing XML solutions is due to the fact that it may not be the best tool for the job.

  71. Conversion... by ackthpt · · Score: 3, Interesting
    Um. Ok, I actually read the whole article and it has influenced my to change the direction, or consider strongly doing so, exporting data for archival purposes. We have an old system which will go out the door in the near future and I have been charged with archiving tables from a database in some form which makes they easily readable for auditing purposes, or for the more masochistic, able to be plugged into their happy little desktop database of choice (usually Access.) That said.

    That said, the challenge stems from MV-fields. Those nifty things in PICK which give you the power of keeping associated fields within one table, with as many associations as you like. (for good or for bad, bad usually when it's been abused or good housekeeping neglected.) Piling MV stuff into CSV is just plain icky. Normalizing it first is also icky. However XML may offer a simple, elegant way of keeping it all together in the shape it existed in (which may be important down the road if someone has to produce a report from it (auditors, second guessers, or a55-covering because some account didn't have the right amount of debits or credits for years and the difference needs to be found.)

    I'm off to explore XML more fully. There's probably yet-another O'Reilly book in my future...

    --

    A feeling of having made the same mistake before: Deja Foobar
    1. Re:Conversion... by peterarm · · Score: 1

      I'm off to explore XML more fully. There's probably yet-another O'Reilly book in my future...

      Unfortunately (except for O'Reilly!), since it's XML, there's more like 10 in your near future...

  72. A Paradigm That DOES Map Well? by prestidigital · · Score: 1

    First, a huge "Thank You" to Tim Bray and to /. for facilitating this important (IMHO) discussion on the relative merits and demerits of XML. I am a self-taught XML enthusiast. This sort of discussion, especially one with such expert validity, is useful to me because it grounds some of the vague notions I was coming up with through my own experience using XML.

    I wanted to respond in particular to one thing in Mr. Bray's most recent article:

    "But let's face it, when you parse XML, you get a data structure that is kind of an ordered sequence and kind of a tree and kind of a hypertext. This maps well onto no known programming paradigm."

    I'm not sure if this precisely addresses what is asserted, but I think perhaps there is a known programming paradigm that does map well: SceneGraph APIs.

    This is probably a much longer discussion that I have time for right now, but here's what I mean:

    SceneGraphs are data structures commonly used for 3D graphics programming. SGs have concepts like nodes, parents, addChild, removeChild, and nested nodes, etc. XML can be extremely useful for representing a SceneGraph. If nodes are nested in the XML, then they are nested in the SG and vice versa. Nodes themselves are containers of attributes (PropertyBags, or whatever you like to call them), so serialization and deserialization is indeed a good thing here. The mapping is very tight between XML and SGs in this sense. But that just addresses the data structure and OO parts of the "equation" that maps XML particulary well to SG APIs.

    Another important concept in SG APIs are SG traversals. Traversals are the sequential paths taken by the SG engine as it performs calculations on, updates to, and rendering of the SG. Some traversals process the entire SG, depth-first, left-to-right, and some just traverse down to a single leaf and stop, but essentially any traversal is a path through the graph. Traversals can be specialized. Some might search, some might render, some might calculate. This seems very XSL-like, but at the very least, there is a sequential processing of the structure (can be parallel but results are ultimately combined in the join and finalized sequentially).

    Finally, as for hyperlinking (Mr. Bray actually said "hypertext"), that's there too. A technique similar to hyperlinking can be used to dynamically jump to different subtrees within the overall SG. If I want to render only a portion of an SG, I might move the traversal pointer from some SG root node down to a subtree containing just a few models. References are also used in SceneGraphs. If I want a model to appear 10 times, I don't want to load it 10 times - I want to load it once and make 9 references.

    But like I said, there's probably a lot more to consider. I'd certainly like to hear what Mr. Bray thinks as well as what any Slashdotters w/ SG experience might have to say.

  73. Why XML is a language by Eneff · · Score: 2, Informative
    language definition

    A language is the set of all ways a grammar allows symbols to be combined.

    (of course, a grammar is a set of rules on how to combine symbols.)

    Under the formal definition, XML is indeed a language. It is not a language useful for defining algorithms, admittedly.

    Can we stop with this "XML is not a language" now?

  74. Square egg by Anonymous Coward · · Score: 0

    No idea why the powers that be chez slashdot should have chosen to focus on Mr Bray believing XML to suck without sucking.

    A brief visit to his site reveals him to be an Economist reader who doesn't believe in Adam Smith!

    The man is a human logic bomb, one bowel movement away from destroying us all.

  75. Other tools by Meech · · Score: 1

    The idea is to get things done fast and with some quality. Using xml can increase productivity because once you know how to use it, it becomes very simple and the next time you run into a situation that calls for a data file, you can quickly implement it.

  76. XML is undeniably a good thing. by ProtonMotiveForce · · Score: 3, Insightful

    Is it the best? Probably not. But it's undeniably an effective lingua franca. A human can easily creat, edit, and manage it dynamically - you want a new tage you just do it.

    Then, it's also as easy on the software side to reflect those changes. The fashionable arguments people use against it (why is it so fashionable to bash anything that happens to be a buzzword?) are non sequiturs in terms of what XML is intended for.

    I use it, hell I probably overuse it. It's so damn easy to parse that I don't want to waste time building a custom format just to save that extra 1K of space or 1/100th of a second.

  77. what you don't get is text is wasteful by Anonymous Coward · · Score: 0

    Look at TIFF, look at XML. Both are the same idea, except one is binary and one is text. The problem with TIFF was that no one could read anyone else's TIFF files. Since anyone could create a tag, everyone did, and no one could read anyone else's tags.

    XML doesn't solve this problem either. Look at the problems it is having.

    The only solution is to standardize the data format, not the meta-format. And once you do that, text format adds nothing except overhead.

    XML is supremely unsuited for most of the things it is used for.

  78. XMLs, PLs, UIs and Us by jefu · · Score: 1
    I was working on a "smart", "language oriented" editor for ADA way back when ADA was considered the Thing To Use and proposed something very like XML as a markup for it. It was considered Way Too Far Out and dismissed.

    Since then I've considered the same kind of thing a few times and while I don't think that XML syntax for a programming language is such a great thing in some ways, I've come to think its a Very Good Thing on other ways.

    For instance, reading a recent discussion of Hungarian Notation, I saw a comment where someone suggested being able to mouse over a variable and have its definition, scope, any associated comments, maybe all its uses highlighted in different ways. Using XML as a basic markup for a program could facilitate this quite a bit (yes, there are other ways).

    Or imagine having the ability to embed diagrams, images and other documentation into a program. (Yes, I'm aware of c#'s mechanisms - I'm thinking of something far more pervasive.) UML information could also be carried along with tbe program. (Yes, again, I've seen mechanisms that do this, but they mostly appear to me to be a bit on the hokey side.)

    Similarly, generative programming, Karl Lieberherr's Adaptive Object Oriented Programming, Aspect Oriented Programming could all use XML markup as a facilitating mechanism.

    Or consider Knuth's Literate Programming with an XML syntax. For those who've only seen LP in the context of some of the weaker literate programming mechanisms available, check out the books on TeX and MetaFont where the code is presented using literate programming.

    XML markup would also present mechanisms for macros and conditional compilation that could be very powerful indeed. For instance, having used Sather, I always want pre and post conditions nicely included in procedure definitions in other languages (and have remained frustrated that the Java language definition (c# as well, as far as i can tell) has not included these constructs except as ad hoc add ons). An underlying XML markup would make this possible, even relatively easy.

    As a programmer I wouldn't want to have to interact with it directly, I'll admit - but we should be able to build Emacs modes or similarly "smart" editors that make the interaction reasonable. And given how popular big fancy IDE's are these days, this shouldn't be all that tough to manage.

    And there are other potential benefits as well - programmer control of name mangling, programmer control of obfuscation (also much stronger support for intelligent de-obfuscation, by the way), support for better code refactoring, the ability to track changes on a more conceptual level in a version control system.

    To say nothing of being able to finally resolve all those damn arguments about the One True Way to lay out your code - every user could define their own preference in their UI - the markup itself would not need to know anything about it at all.

    Yes, I'm well aware of the drawbacks - I use emacs for almost everything. But given the effort that has goine into making IDE's these days, most of the drawbacks are quite resolveable.

  79. So what you're saying is... by devphil · · Score: 1
    The nice (if obvious) tool for XML is the parser. XML is specified so that any computer science undergrad could write one in a couple weeks. As a result, there are a lot of parsers out there and they all do the same thing. This makes XML easily read by machines as well as humans.

    The limitation of XML that you will probably next notice that it does not assign any meaning to data. [...]

    The beauty if XML is that both of the two developers above should have written a specification for the way they did it. [...]

    Uniform syntax for instructions and data, trivial to parse, no assumed meanings... So, with a little more effort, and maybe some standardization, XML will eventually reach the same place that LISP has been for decades.

    If I may quote Sherlock Holmes, who was quoting the book of Ecclesiastes: There is nothing new under the sun. It has all been done before.

    --
    You cannot apply a technological solution to a sociological problem. (Edwards' Law)
    1. Re:So what you're saying is... by jedidiah · · Score: 1

      There's more to any standard than just the basics of whether or not it fits your basic needs. There's also the question of whether or not any significant number of people would be willing to adopt it (hype or not).

      I am sure that COBOL managed to solve some useful problem that newer languages only replicated in some fashion. However, that's not going to encourage me to go anywhere near COBOL.

      --
      A Pirate and a Puritan look the same on a balance sheet.
    2. Re:So what you're saying is... by Steeltoe · · Score: 1

      Just stick with LISP then. You do it in LISP and the others choose what they want to do it in. I assume you can do it blindfolded, gagged and all your fingers and toes behind your back, and faster too, in LISP.. Then do it!

      But please spare us the stiff attitude and elitism..

      Just to prove you wrong though: XML is not S-Expressions

    3. Re:So what you're saying is... by Anonymous Coward · · Score: 0
      XML will eventually reach the same place that LISP has been for decades

      Extinct?

  80. Why XML doesn't suck.... by russotto · · Score: 1

    ...because the standard of comparison is CSS. Now THAT sucks!

  81. Even XHTML? by yerricde · · Score: 1

    they should be used in combination with HumanInput -> XML generation programs.

    Then how did you format the comment you just wrote? You wrote HTML, which in its modern form is an application of XML. Do you claim that only programs like Dreamweaver should be used to generate XHTML in practice?

    --
    Will I retire or break 10K?
    1. Re:Even XHTML? by WetCat · · Score: 1

      I did not.
      I used "plain text" option.
      I am avoiding manual writing of *TML languages at all costs.

  82. ISPs that cap monthly transfers by yerricde · · Score: 1

    Charging by the kilocharacter?! What decade is this?

    The 2000s. And in the 2000s, ISPs continue to bill by the KB. A British ISP caps transfer to a single account at 30,000,000 KB per month. Worse, some other ISPs outside North America allocate only 3,000,000 KB to each customer per month.

    But can't gzip reduce the size of an XML stream?

    --
    Will I retire or break 10K?
  83. How XHTML solves it by yerricde · · Score: 1

    First, you have to be able to reference a student by its id, so you use a hashtable. Next you either have to require that student data comes first, or you have an update phase where you update each of your class objects.

    XHTML, a common application of XML, chooses what I think you're calling the the "update phase" method, through URIs in src and href attributes of elements. For example:

    <p>
    <img src="foo.png" alt="Foo Fighters on stage" />
    <img src="bar.png" alt="Foo Fighters enjoying drinks" />
    </p>

    Here, "foo.png" and "bar.png" are relative URIs to image documents.

    --
    Will I retire or break 10K?
  84. XML, Clearcase, Registry, COM and friends by iamacat · · Score: 1

    I think both arguments - XML sucks and doesn't suck - are missing the point. For example, my company switched to ClearCase because of the touted features, but there are several meetings per week to solve some branch problems, or VOB problems, or wrong tag. The same group was using RCS before and people had to do some manual merge but didn't spend nearly so much time on it.

    Something technology can be incredibly powerful, extensible, theoretically clean and yet incredibly unpleasant to use. I had to write a simple servlet the other day and was dismayed to see that JSDK 2.0 command line switches are gone and I have to write a multi-page jumble of brackets, columns and what not to get the thing running. Ended up searching for an old version of JSDK on co-workers machine. What wouldn't I give for a servlet engine that uses good old .ini files.

    It's true that various libraries could hide the mess they use internally. But then when they break, I get to look at a particulary convoluted example of the mess. There are so many smart people in CS. Can't someone come up with a data format that is pleasent to read, edit and parse, not just powerful?

  85. hmmm.. so it is 50% suck now? by babyblink · · Score: 1

    is 50% suck good or suck? hmmm...

    --
    [self dealloc];
    1. Re:hmmm.. so it is 50% suck now? by Anonymous Coward · · Score: 0

      No. It only 40% suck now. Me so horny.

  86. Re:I know no one is allowed to speak in the States by Anonymous Coward · · Score: 0

    Maybe because it is complete and utter bullshit?

  87. Glorified Text Files by irritating+environme · · Score: 1

    Honestly People! Speaking as someone who used XML right and left on several projects...

    When you have people arguing that XML is a godlike power because people decide to sit down, exchange text files, which happen to be in XML.

    That isn't really saying anything. What's the difference in this case between a CSV and XML? They're both just text file formats! Except...

    1. XML is much much slower in raw performance due to parsing overhead.
    2. XML is very hardware resource intensive. If you want to do extensive reading or manipulation of an XML file, the entire DOM tree has to be in memory, and the DOM tree is not very compact...
    3. XML is not easily learned. Showing a beginning programmer with a grasp on any language how to read a CSV file is easy. Try doing the same with XML tools, you have to teach someone about trees, leafs, nodes, and if they're using XSL, a functional recursive programming language.
    4. CDATA. Now COME ON people. If you want binary data or formatting-preserved data, base 64 encode it. XML people saying readable data is a primary goal of XML are completely undercut by these worthless structures

    OUCH

    Nine times out of ten you don't need XML when its being used today.

    CSVs or .INIs other text file formats could have equivalent infrastructure for validation, and they'd be faster and more effective. Same with internationalization, and many many other features XML claims is theirs and only possible with the David Copperfield magic of XML.

    Finally, I'd like to point out that when I had to write a fast-performing and more compact "XML" parser on a resource-limited PDA, two things helped out enormously:

    1) the line break actually means something
    2) Use a generic ending tag. Saves space

    --


    Hey, I'm just your average shit and piss factory.
  88. XML Sucks by magic · · Score: 2, Insightful
    His arguments appear to be based on an assumption: humans are going to hand-code XML and want wierd syntax because of that (e.g. attributes, explicit close tags, the ridiculous XPath grammar). I doubt that 1% of the world's XML (by character count) is hand written today, and think this assumption is a poor one to make.

    I could care less whether "<", "(", "{" or any other character begins a tag. The structure of

    '(a (href "http://www.cnn.com") (text "CNN"))
    beats
    <HREF="http://www.cnn.com">CNN</A>
    by a mile.

    Data should be stored in a way that is easy to parse and unambiguous to design. XML would have been better designed with a way to represent pointers (e.g. LET/LETREC) than the silly attributes and other syntactic nonsense.


    -m

  89. Too better clarify by Anonymous Coward · · Score: 0

    God understands our arrangement even if you don't.I stay on his good side and he keeps out of my way.When we do get together we're usually kicking asses and taking names.Well he tracks souls anyhow.I just try preach the good word to good folk who are having trouble (like yourself).

    I'm going to pray that you find your way before you're on your death bed with your life ebbing away,unable to form coherent thoughts.Because then,my friend,you just missed the train (dare I say Soul Train?).So jump on,there's plenty of room,even for a blasphemer such as yourself.
    I'll be rooting for ya!

  90. Communist countries don't! by Anonymous Coward · · Score: 0

    Communist countries don't believe in superstitions like religion!

    That's part of what makes them so scary and mean!

    Those damn athiestic commie bastards!

    1. Re:Communist countries don't! by Anonymous Coward · · Score: 0

      Like someone else said, don't mix politics and religion. Atheism == intelligence.

  91. Yes XML Does Suck by Anonymous Coward · · Score: 0

    After 2 years of use, i realized I could have been doing something more productive than using XMLDocument, XMLNode, and XSLT sheets. I could have used a database instead of storing text data in XML.

    Go ahead defend XML, and its virtue, it will not change the fact it is ungodly unprogrammer (if there is such a word) friendly.

  92. XML is Verbose...compresses beautifully-- NOT!! by coats · · Score: 4, Informative
    I'm an environmental modeler (think supercomputing) , and most of the time the stuff I generate won't fit into dinky little 2GB files. Model data doesn't compress well (and even if it did, it'd take too many tera-ops). And then, forcing it into a sequential access model is not a good idea.. When you have a 10GB data set, you really need direct access to mine the contents, rather than having to "eat the file whole."

    But bureaucrats being what they are (and bureaucrats being in charge of environmental agencies), they've been told that XML is a GOOD THING, and want to force everything into that mold. And it doesn't fit!

    Call it the "law of the instrument," as someone (Poul Anderson, I think, put it:

    As soon as you invent a new and better type of monkey wrench, you can be sure someone will make use of it -- as a bludgeon!
    That's XML, to a tee!

    --
    "My opinions are my own, and I've got *lots* of them!"
    1. Re:XML is Verbose...compresses beautifully-- NOT!! by thogard · · Score: 1

      XML doesn't compress well for most smaller things either.

      For example, take a current netscape history file and run it through gzip and do the same with an old format one with the same info.

      The reason for this is simple. The compression used in gzip (and mot everything else that is common) starts at the begining of the file and starts looking for common bits. When it finds as many as it can cope with, it builds its compression dictionary and then starts streaming the data. At some point when the table no longer seems to fit, then it rebuilds the table.

      Years ago when people sent usenet via uucp, I found that it was much better to break the articles into headers and bodies, and compress them separately.

      Maybe we need another XML tag to say "The compressor should considering dumping its dictionary at this point"

    2. Re:XML is Verbose...compresses beautifully-- NOT!! by Mike+A. · · Score: 1
      The secret is that if you really want to compress XML specifically, you use a compression mechanism that understands XML. The basic idea of such a compression mechanism is to have a dictionary of things like tag and attribute names and compress that way. Then you use a compression mechanism appropriate for whatever kind of data you have, if necessary.


      On another note, 10GB data sets are indeed a poor fit for XML, but XML itself surely cannot be blamed for having become a buzzword that unduly fascinates the PHBs...

      --

      --
      Do I look like I speak for my employer?
  93. Talk about Apples and Oak Trees... by Llywelyn · · Score: 1

    "I'll just stick with LaTeX."

    Personally, I use LaTeX for about 90% of my document preparation needs. XML, however, is a completely different beast that works better for some things, worse for others, and will work for somethings that LaTeX simply isn't designed to do.

    If I want to set operating system preferences or default variables, an XML file can serve for this quite nicely in a similar manner to plists. This is *not* something that LaTeX is even designed for.

    Similarly, there are some things that XML is just better at. Apple's Keynote uses XML and using LaTeX for something like that, while doable, would just be silly.

    --
    Integrate Keynote and LaTeX
  94. At least Bray agrees with me about S-expressions by alispguru · · Score: 1


    As for S-Expressions, I can see the arguments, and can't honestly tell you why the same technologists who ignored decades of S-Expression lore instantly took up XML. It's crystal-clear that you could have used S-Expression syntax for XML and it all would have worked about as well.

    Maybe it's because S-Expressions were too closely identified with the tattered dreams of the AI community? Or maybe just because XML's compulsory end-tags make it a little easier to read?

    I don't know, either. I will predict, though, that XML may create new interest in Lisp. The rest of you can go on pushing around mountains of Java and XSLT, bringing your computers to their knees when you need to do hairy XML manipulation - I'll run rings around you using S-expressions as DOM-lite, using systems that have been tuned for twenty years to efficiently handle these data structures.
    --

    To a Lisp hacker, XML is S-expressions in drag.
  95. XML is great by master_p · · Score: 2, Interesting

    Some people here say that XML is just a buzzword with no real advantages etc. Let me tell you, they are all wrong.

    My company makes apps for the military. These type of apps make heavy use of binary messages exchanged over a network. Up until now, there were numerous errors in the specification, different type systems and other problems between departments. With XML, we managed to do the following:

    1) make a standard for expressing messages. Since messages are tree structures (struct embedded in struct etc), XML is ideal for it.

    2) made a tool to write messages and group them according to context. Now specification docs can be automatically produced by the tool and handed over to subcontractors, whereas previously they were written by hand, contained many errors and had different styles. Now all these problems are gone, changes are documented and saved in the configuration and versioning/control system, messages are automatically versioned and the whole procedure is automated to the point that it takes a few clicks to modify a message and produce a new specification.

    3) made tools which can prepare scenarios for testing these messages automatically. This saved us a lot work!!! it is quite a big amount to test every field of every struct of each message from the up to 10000 message a combat system has (and each message can contain hundrends of numeric fields)!!! thanks to XML, each field's bit width, range, default value, minimum and maximum value and enumeration is known beforehand from the XML data produced for the specification, so by using XSLT messages are automatically converted to C, C++, ADA and Java code along with the relevant code to send, receive and validate each message.

    One of the true benefits of XML is that data are not tied to a specific application. For my company, it has saved us a lot of work, because there is no need to bloat one app with all the functionality, we can make several separate tools which do one job only and operate on those XML data.

  96. Why S-Expressions not used vs XML by snakecoder · · Score: 1

    One word (or for if your anal) HTML. People looked at html on the web and saw it was good. XML looked alot like HTML. Must be good.

    --
    -Nuke the moon
  97. Gotta have some respect. by JWhitlock · · Score: 1
    So, after actually reading the article, I wondered "How does an XML guy write web pages?".

    Well, take a look at the page source:

    <!-- generated via ad-hoc perl, XML, and Emacs code. Industrial strength technology, baby. -->
    Seriously, the HTML doesn't look too bad. In some ways, it's more readable than the rendered copy - such as his list of data items rendered in XML.
  98. Re:IMMEDIATE ATTENTION NEEDED : HIGHLY CONFIDENTIA by sepiachrome · · Score: 1

    oh, my dear moderators - this is funny! funny, i say! has no one a sense of irony? or are all your spam filters set so tight that no one here recognizes a thoughtful and clever parody???

  99. XML doesn't suck? by Anonymous Coward · · Score: 0

    Umm, yeah. It still sucks.

  100. Re: Your sig by jcast · · Score: 1
    I tried it. I got:

    Your search - <my phone number> - did not match any documents.

    Suggestions:
    - Make sure all words are spelled correctly.
    - Try different keywords.
    - Try more general keywords.
    --
    There are reasons why democracy does not work nearly as well as capitalism.
    -- David D. Friedman
  101. No XML Sex Toys :( by McG33k · · Score: 1

    I guess if XML doesn't suck, I won't be able to look forward to my xml pocket-pussy or artificial "cron job"... Everyone needs a good cron job every so often.

  102. What's good for me is good for you? by Anonymous Coward · · Score: 0

    //
    Syntax can be, and has been, interoperable. The definitions of the telephone network, the Internet, email, and the Web are all bits-on-the-wire definitions of what you send back and forth, and they've all worked well enough to change the world. XML provides a nice set of syntax rules that you can stick in the face of a recalcitrant vendor and say "you claim to be interoperable? Well, ship me some XML then." And these days, they can't say no, and this is good for everyone. //
    quote from the article. the last sentence just wraps it all up nicely for you.

  103. Detailed critisizm of Tim Bray's "Why XML Doesn't. by AbbeyRoad · · Score: 1
    Here is my answer in plain ascii:

    http://threading.2038bug.com/xml-answer.html

    -paul

  104. [RANT] Some minor comments about the article by Anonymous Coward · · Score: 0

    XML Has Internationalization Pretty Well Nailed

    Well, not quite, if you consider the fact that localizing XML data sources requires duplication of the file (here comes maintenence) per locale, or using keywords instead of hard coded values within the data source, and thus completely abolishing the use of Serilaization/Deserialization (here comes DOM/SAX parsing and a headache).

    XML Can Represent Pretty Well Anything

    And then come NEMI, RosettaNet and rest of the lot and agree on what they believe to be the most gratifying way of representing that data, to allow for standartization of communciation channels for B2B and B2C. Sadly, none of these groups agree on the standards, and most software manufacturers usually "extend" or "invent their own". Now, if we could only get everyone to agree on the standards of communication using XML as a vehicle, then we'd all be in a world of good.

    That being said, for programmers, when defining internal documents for application configuration, data retrieval, etc., it is possibly one of the easiest data stores to manage and maintain.

    Furthermore, XML cannot directly contain information represented in any binary form(attachments, for instance) in any straightforward (and non-space consuming) way, causing it to be a loose container.


  105. Re:I know no one is allowed to speak in the States by justin_speers · · Score: 1

    Well then Johnny, tell us why it is about oil. I'll point you to an article that explains why it isn't.

    Read this

    I read a few of your other posts, and you desperately need to become more informed before posting in the future. Reading this article is a start.