Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Celebrate the XML Decade

Posted by CowboyNeal on Thu Nov 16, 2006 09:49 PM
from the happy-birthday dept.
IdaAshley writes "IBM Systems Journal recently published an issue dedicated to XML's 10th anniversary. Take a look at XML application techniques, and general discussion of the technical, economic and even cultural effects of XML. Learn why XML has been successful, and what it would take for XML to continue its success."
This discussion has been archived. No new comments can be posted.
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • Celebrate the XML Decade
    I tried. Oh Lord, how I tried!

    I started this morning by talking to everyone in XML.

    I hope the black eye my coworker gave me heals before my presentation to the CTO tomorrow morning :-(
    • Re:Celebrate the XML Decade (Score:5, Funny)

      by Duhavid (677874) on Thursday November 16 2006, @10:45PM (#16880022)
      Really...

      We all needed to leave the first post in this to the guy with
      the sig

      "XML is like violence, if it doenst fix the problem, you arent using enough"

      Or words to that effect.
      [ Parent ]
    • Re:Celebrate the XML Decade (Score:5, Funny)

      by Randolpho (628485) on Thursday November 16 2006, @11:24PM (#16880262)
      (http://www.google.com/ig | Last Journal: Wednesday April 11 2007, @09:55AM)
      I started this morning by talking to everyone in XML.
      <conversation>
      <greeting type="friendly">Hello, fellow coworker type dude!</greeting>
      <response type="violent">Have a black eye!</response>
      </conversation>
      [ Parent ]
      • Re:Celebrate the XML Decade (Score:4, Funny)

        by Anonymous Coward on Thursday November 16 2006, @11:43PM (#16880382)
        <greeting type="friendly">Hello, fellow coworker type dude!</greeting>
        That's a poorly designed format. You should make "greeting" a complex type and use elements to represent the greeting text and the greeting type. Then, the greeting type can be properly validated against a W3C XML Schema. There's no valid reason to use an attribute in cases like these.
        [ Parent ]
        • Re:Celebrate the XML Decade (Score:5, Funny)

          by zootm (850416) on Friday November 17 2006, @05:31AM (#16881764)

          That's a poorly designed format. You should make "greeting" a complex type and use elements to represent the greeting text and the greeting type. Then, the greeting type can be properly validated against a W3C XML Schema. There's no valid reason to use an attribute in cases like these.

          I took the liberty of revising the format a little, is this better?

          <?xml version="1.0" encoding="UTF-8" standalone="no"?>
          <conversation
          xmlns="http://slashdot.org/sarcasm/XML/conversatio n"
          xmlns:html="http://www.w3.org/1999/xhtml">

          <participants>
          <participant>
          <short-name>OP</short-name>
          <full-name>Original poster</full-name>
          </participant>
          <participant>
          <short-name>CW</short-name>
          <full-name>Unwitting coworker</full-name>
          </participant>
          </participants>

          <relationships>
          <two-way-relationship name="coworker">
          <person>OP</person>
          <person>CW</person>
          </two-way-relationship>
          </relationships>

          <greeting time="2006-11-17T10:12:10Z" speaker="OP" targets="CW">
          <type>
          <demeanour>friendly</demeanour>
          </type>
          <speech>
          <text type="text/plain">
          Hello, fellow coworker type dude!
          </text>
          </speech>
          </greeting>

          <response time="2006-11-17T10:12:34Z" speaker="CW" targets="OP">
          <type>
          <demeanour>angry</demeanour>
          <context>
          <divorce type="messy"/>
          <custody-battle type="messy"/>
          </context>
          </type>
          <speech>
          <text type="application/xhtml+xml">
          Have a <html:em>black eye</html:em>!
          </text>
          </speech>
          <action>
          <punch>
          <recipient>OP</recipient>
          <aim>eye</aim>
          </punch>
          </action>
          </response>

          </conversation>

          I'm sort of disappointed that I only got to use two namespaces. Can't get indentation to work either, unfortunately.

          [ Parent ]
        • Re:Celebrate the XML Decade by rograndom (Score:2) Friday November 17 2006, @08:19AM
        • 2 replies beneath your current threshold.
    • XML Debacle is more like it ;) by FooAtWFU (Score:3) Thursday November 16 2006, @11:43PM
    • Re:Celebrate the XML Decade by gbobeck (Score:3) Friday November 17 2006, @04:21AM
    • 1 reply beneath your current threshold.
  • Half-Life 7? (Score:1, Offtopic)

    by PriyanPhoenix (900509) on Thursday November 16 2006, @09:55PM (#16879690)
    (http://www.meewella.com/)
    From TFA:
    It goes on to give HL7 as an example of such a modeling approach.
    Wow, they really do think XML has staying power! By my count Half-Life 7 is due to land sometime 2097...
    • Re:Half-Life 7? by Anonymous Coward (Score:2) Thursday November 16 2006, @11:08PM
  • Why XML was successful (Score:4, Insightful)

    by Ant P. (974313) <anthony.parsons@manx.net> on Thursday November 16 2006, @10:02PM (#16879730)

    Marketing to PHBs, mostly.

    However here on earth a lot of people still hand-code the stuff. IMO a C-like syntax using nested {}s would've been better.

    • Re:Why XML was successful (Score:5, Informative)

      by MP3Chuck (652277) on Thursday November 16 2006, @10:15PM (#16879812)
      (http://www.tempusband.com/ | Last Journal: Friday August 29 2003, @07:54PM)
      "IMO a C-like syntax using nested {}s would've been better."

      JSON [wikipedia.org]?
      [ Parent ]
      • Re:Why XML was successful by Anonymous Coward (Score:1) Thursday November 16 2006, @11:36PM
      • Re:Why XML was successful (Score:5, Interesting)

        by Ankh (19084) * on Friday November 17 2006, @12:19AM (#16880588)
        (http://www.holoweb.net/~liam/)
        A lot of people ask about using a different syntax, such as @name{....} as Scribe (and later LaTeX) did. Note that @element{xxx} is in fact a possible syntax that can be defined using SGML. But we were after something different.

        When we designed XML, we had over a decade of solid experience with interoperability in the world of SGML, and we also knew about the kinds of problems that different sorts of users had with different sorts of syntax.

        The primary users of SGML-based documentation systems were not programmers. They were people who were often not likely to know about a bracket-matching option in an editor or about code indenting, for example. But they were still legitimate users.

        You can't easily test the markup in a declarative system: if in an HTML document I used H3 instead of P in a document it might not look right, but it would still parse OK. If I muddle up Author and Title in a bibliography, same thing.

        So, the redundancy of end tags in XML is there because, in practice, if you didn't have it, we had learned that our users had problems correcting their documents, and we knew that, in general, it was only rarely possible for software to give the users much help. There were some experiments early on with </>, allowed by SGML (with various options set) to end any element; it soon became obvious that this caused more problems than it was worth, and even Microsoft disabled the troublesome feature in their XML parser.

        It's true that today XML is used in lots of situations we didn't predict. We were amazed that by the time we got XML published as a Recommendation there were over 200 users. So no, we didn't predict the future percfectly. But the popularity of XML shows we can't have done all that badly, really ;-)

        Liam

        (Liam Quin, currently W3C XML Activity Lead)
        [ Parent ]
    • Re:Why XML was successful (Score:5, Insightful)

      by porkThreeWays (895269) on Thursday November 16 2006, @10:20PM (#16879842)
      Sorta... XML came at a time when there weren't a whole lot of good viable data representation standards. Those that did (i.e. SGML) were too complicated for light use. XML was meant to be used by the masses while still technically remain an SGML subset. We have better alternatives today, but once something is in widespread use, it's not going away for awhile.
      [ Parent ]
    • Re:Why XML was successful by CaptainPinko (Score:2) Thursday November 16 2006, @10:26PM
    • Re:Why XML was successful (Score:5, Insightful)

      by smallpaul (65919) <paul@@@prescod...net> on Thursday November 16 2006, @11:07PM (#16880132)
      A curly brace syntax would have been a better format for "large scale enterprise publishing"? As someone who has spent more than a decade in that field, I must disagree strongly. A curly brace would have been better to allow enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. [w3.org] Please do not confuse what XML is used for with what it was designed for. There is a reason that XML delivery units are called "documents" and not "messages".
      [ Parent ]
    • Re:Why XML was successful by binaryloc (Score:1) Thursday November 16 2006, @11:07PM
    • Re:Why XML was successful by Decaff (Score:2) Friday November 17 2006, @06:16AM
    • YAML by cLive ;-) (Score:2) Friday November 17 2006, @11:22AM
    • 1 reply beneath your current threshold.
  • by d3ik (798966) on Thursday November 16 2006, @10:02PM (#16879734)
    ... and most "enterprisey" Java developers have never met a problem that couldn't be fixed with more XML.
    • Re:Unfortunately I'm a Java developer... by ashultz (Score:2) Thursday November 16 2006, @11:18PM
    • by dch24 (904899) on Thursday November 16 2006, @11:26PM (#16880276)
      My bosses were wary when I suggested XML as our data representation for a new project. Here were some of the arguments:

      Pro
      • Easy to change the schema, don't have to convert old data.
      • They didn't know exactly what XML was, so if I recommended it, ... (a.k.a. "gee whiz" factor?)
      • The other developers liked the idea
      Con
      • They weren't sure whether this would increase (better system = save time?) or decrease (reinvent the wheel = waste a lot of time in meetings?) productivity
      • Takes lots of space (no "binary XML")
      • Slow processing, right? (see "Takes lots of space")

      Eventually we settled on gzipped xml. It required a little more code, but everyone seemed happy. Oh, and we stored images as separate .png.

      I think my experience is pretty common, though. And from experience, libxml2 + libz is still very, very fast, and there's not a (whole lot) of wasted space.

      I'd like to hear other people's success stories, if anyone wants to reply... I liked reading the article, too.
      [ Parent ]
      • by j. andrew rogers (774820) on Friday November 17 2006, @03:21AM (#16881266)
        The "slow processing" is caused by more than taking a lot of space. XML is basically a document markup but is frequently and regular used as a wire protocol, which has very different design requirements if you want a good standard. And in fact we already have a good standard for this kind of thing called "ASN.1", which was actually engineered to be extremely efficient as a wire protocol standard. (There is also an ITU standard for encoding XML as ASN.1 called XER, which solves many of the performance problems.)

        Arguably the single biggest problem with XML that causes slow processing is that software can predict almost nothing about an XML stream and therefore has to allow for anything. The opening bracket tells you very little about what to expect, and creates few implicit failure or non-conformance tests that allows one to terminate processing because there is no definition of "unreasonable". If I want to embed a terabyte of data between XML tags, there is no built-in basic mechanism to inform the software of how much data I should expect to see before a closing tag and no basic mechanism to cue the software as to the type of data to expect. (Yes, you can sort of do it with lots of other layers strapped on, but it isn't core and strapping it on adds complexity.) This is the primary reason it gives miserable performance as a wire protocol format -- the software cannot make decisions about the data without slurping most or all of it, with no way to predict what "most" or "all" actually is. In well engineered standards such as ASN.1, they use the good old tag-length-value (TLV) format. The "tag" tells you what to expect, the length tells you how many bytes to expect, and the value is the actual data. In short, the encoding tells the software exactly what it is about to do before it does it in enough detail that the software can make smart and performant handling decisions.

        The only real advantage XML has is that it is (sort of) human readable. Raw TLV formatted documents are a bit opaque, but they can be trivially converted into an XML-like format with no loss (and back) without giving software parsers headaches. There is buckets of irony that the deficiencies of XML are being fixed by essentially converting it to ASN.1 style formats so that machines can parse them with maximum efficiency. Yet another case of computer science history repeating itself. XML is not useful for much more than a presentation layer, and the fact that it is often treated as far more is ridiculous.
        [ Parent ]
      • Re:Unfortunately I'm a Java developer... by oyenstikker (Score:2) Friday November 17 2006, @08:48AM
      • Re:Unfortunately I'm a Java developer... by Pootie Tang (Score:1) Friday November 17 2006, @03:13PM
      • 1 reply beneath your current threshold.
    • Re:Unfortunately I'm a Java developer... by TheMCP (Score:2) Friday November 17 2006, @01:32PM
  • This year I'll be sending out christmas cards in XML and then placing a large banner outside my house with the appropriate schema.

    Then with every following year, I'll be sending a stylesheet card which they can apply to the original XML.

    And if they need to locate their names on the card, they can use //recipient[@name='mum']
  • No mention of XML's creators? (Score:3, Informative)

    by elving (133577) on Thursday November 16 2006, @10:07PM (#16879766)
    Strange that an article celebrating XML [w3.org]'s anniversary would neglect to mention XML's creator [tbray.org]. I wonder if the fact he works for a competitor [sun.com] has anything to do with it...
  • A decade of bloat. (Score:1, Informative)

    by Anonymous Coward on Thursday November 16 2006, @10:08PM (#16879772)
    All we can celebrate is a decade of bloat. For hard drive manufacturers and bandwidth providers, this has been a great development. But for those of us who have to deal with systems that use XML, we often wish that they had chosen a far more compact representation.

    S-expressions, of the sort used in Common Lisp and Scheme, would have been a good alternative. They're simple, use a minimal number of characters, and are very easy to parse. Hell, most Comp Sci grads have written at least once such parser during their education.

    The worst use has perhaps been with AJAX. Had AJAX been based around data passed as sexprs rather than as XML, it would consume much less bandwidth, and could be handled far quicker on the server side. Unfortunately, a poor technical decision was made to use XML. And so we get to hear all about the performance problems people experience with AJAX systems.

  • news flash (Score:2, Insightful)

    by User 956 (568564) on Thursday November 16 2006, @10:17PM (#16879828)
    (http://www.atomjax.com/)
    Take a look at XML application techniques, and general discussion of the technical, economic and even cultural effects of XML.

    Cultural Effects? This is a spec for structuring data, not a Picasso.
  • XML Decade? (Score:5, Funny)

    by RealGrouchy (943109) on Thursday November 16 2006, @10:35PM (#16879954)
    Wait... let me figure this one out...

    MCMXC was 1990...
    MDCCCLX was 1860...

    I give up! Which decade was XML?

    - RG>
    • Re:XML Decade? by Werkhaus (Score:1) Thursday November 16 2006, @10:42PM
      • Re:XML Decade? by Planetary (Score:1) Friday November 17 2006, @04:32AM
      • Re:XML Decade? by clickclickdrone (Score:2) Friday November 17 2006, @06:34AM
    • Re:XML Decade? by guruevi (Score:2) Thursday November 16 2006, @10:46PM
      • Re:XML Decade? by Anonymous Coward (Score:3) Thursday November 16 2006, @11:01PM
        • Re:XML Decade? by Anonymous Coward (Score:1) Friday November 17 2006, @01:16AM
        • Re:XML Decade? by Chapter80 (Score:2) Friday November 17 2006, @11:29AM
          • Re:XML Decade? by ashitaka (Score:2) Friday November 17 2006, @12:39PM
    • Re:XML Decade? by aibrahim (Score:2) Friday November 17 2006, @05:43PM
    • Re:XML Decade? by mmalove (Score:2) Tuesday November 21 2006, @04:18PM
    • 1 reply beneath your current threshold.
  • by Cosmic Debris (650504) on Thursday November 16 2006, @10:50PM (#16880042)
    I don't know the origin of the saying but it brings to mind something I use when discussing the subject with customer architects:
    XML is like violence. If it doesn't work, you're not using enough of it.
    If anyone can come up with the true source of this -- or the accurate quote -- I'd appreciate it.
  • XML is what it is (Score:1)

    by mlwmohawk (801821) on Thursday November 16 2006, @10:51PM (#16880050)
    Can we forget the hype, can we forget the PHBs, can we forget all the nonsense?

    XML has a purpose, combined with expat, it is a convenient, if inefficient, method by which programs can exchange data relatively easily.

    I am not an XML fan, by any means, but if absolute efficiency is not important, XML provides a common format for data exchange.
  • Stuck (Score:2, Insightful)

    by Duncan3 (10537) on Thursday November 16 2006, @10:51PM (#16880052)
    (http://www.mithral.com/~beberg/)
    So we're officially stuck with this crap forever.

    Yay! Lets party!

    XML is for data interchange, nothing else. Unfortunately, it's being used for everything but.
    • Re:Stuck by l0b0 (Score:2) Friday November 17 2006, @04:28AM
      • Re:Stuck by Eivind Eklund (Score:2) Friday November 17 2006, @06:38AM
        • Re:Stuck by Kent Recal (Score:2) Friday November 17 2006, @07:09PM
      • Re:Stuck by theCoder (Score:2) Friday November 17 2006, @08:08AM
        • Re:Stuck by l0b0 (Score:1) Friday November 17 2006, @09:05AM
      • Re:Stuck by mcvos (Score:2) Friday November 17 2006, @10:52AM
    • Re:Stuck by PinchDuck (Score:2) Friday November 17 2006, @07:40AM
    • Re:Stuck by Jesus_666 (Score:2) Friday November 17 2006, @10:30AM
  • Longevity (Score:1)

    by scott_karana (841914) on Thursday November 16 2006, @11:13PM (#16880176)
    What XML needs now is a standardized (even ad hoc) format for Binary XML. XML is such a verbose format...
    • Re:Longevity by HeroreV (Score:1) Thursday November 16 2006, @11:59PM
    • Re:Longevity by jibjibjib (Score:1) Friday November 17 2006, @04:48AM
    • ASN.1 by SanityInAnarchy (Score:2) Friday November 17 2006, @05:24PM
    • 1 reply beneath your current threshold.
  • just plain wrong (Score:2)

    by mccoma (64578) on Thursday November 16 2006, @11:26PM (#16880282)
    Apple replacing the perfectly fine, hand editable plist format with an XML version. ick.
  • a decade of ... (Score:3, Insightful)

    by The Pim (140414) on Thursday November 16 2006, @11:36PM (#16880358)
    vague semantics, confusing specifications, unwarranted complexity, standards proliferation, poor tools, and wildly inappropriate application. Not to mention rampant disregard for existing work in nearly every arena it entered. So the essence of XML is this: the problem it solves is not hard, and it does not solve the problem well. [bell-labs.com]
  • Obligatory link (Score:1, Redundant)

    by frenchbedroom (936100) on Friday November 17 2006, @03:57AM (#16881394)
    To the Parable of the Languages [burningbird.net]

    What about me, said C#. I look like Prince!

    Bite me! said C.

    (I did a quick scan of the replies for the link and didn't find it, so mod me redundant if need be)
  • notice too late (Score:2)

    by Tribbin (565963) on Friday November 17 2006, @04:45AM (#16881574)
    (http://tribbin.nl/)
    Celebrate the XML Decade:

    Bah, it's too late to tell us to celebrate during the decade of XML because that decade is now over!

    Yeah, should have done that; celebrating.
  • by gborland (602893) on Friday November 17 2006, @06:13AM (#16881878)
    XML has won a significant technical victory. It has managed to stand firm in the face of the relentless onslaught of doubling processor speeds and memory capacities, so that our word processors are just as slow and bloated as they were a decade ago. Outstanding! Yay for XML!
  • by Louis Guerin (728805) <`guerin' `at' `gmx.net'> on Friday November 17 2006, @06:47AM (#16881998)
    Ten years of XML ... and here I am relearning TeX.

    L
  • by DulcetTone (601692) on Friday November 17 2006, @09:53AM (#16883766)
    (http://dreadnoughtproject.org/)
    Just as blogs are the personal homepages of the new millenium.

  • I see XML as a glorified CSV file. Instead of being a two-dimensional representation of a data structure, you can use an N-dimensional representation.

    If that's all it was, I wouldn't mind. But it gets so much hype. Why?

  • Celebrate? (Score:1)

    by zizzo (86200) <fishbolt&yahoo,com> on Friday November 17 2006, @02:01PM (#16888206)
    (http://slashdot.org/)
    We must not be thinking of the same XML.
  • XML is a nescessary evil. Even though it's slow and inefficent, it's a good system for quickly developing a parser for varied file types without having to design an editor.

    Acedemicly-pure XML is just needless overkill, IMO.

  • Re:XML's Existing (Score:3, Interesting)

    by myrdred (597891) on Thursday November 16 2006, @10:31PM (#16879908)
    <?xml version="1.0"?>
    <content name="Shameless Self Promotion">

    Good point, though there's a better way to edit binary files.

    For example, I make a product called FileCarver which allows you to create a file format definition (in XML! heh), that describes the format of a binary file, and the program will automatically provide you with a GUI to edit it. Check it out at http:/fizzysoft.net/filecarver/

    </content>
    [ Parent ]
  • Re:XML "Sucks" (Score:4, Funny)

    by MyLongNickName (822545) on Thursday November 16 2006, @10:31PM (#16879918)
    (Last Journal: Saturday October 14 2006, @08:12AM)
    When does a broken link constitute "Informative"?
    [ Parent ]
  • You are trolling, right? Your rant basically consists of few obvious misunderstandings or statements that are factually wrong.

    Seems like a knee-jerk reaction from someone who doesn't understand what XML is and its intended purpose. Seeing the HTML remark was rather amusing though. Way to go to show your ignorance on the subject.

    BTW: XML is not designed to or intended to be a SQL replacement. Only morons would think that, claim that or use it as such.

    [ Parent ]
  • Re:XML "Sucks" (Score:1)

    by Cow Herd (Anonymous) (600893) on Friday November 17 2006, @08:09PM (#16892614)
    Here [rants.org] is a more accessible opinion about XML.
    [ Parent ]
  • 5 replies beneath your current threshold.