Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Tim Bray Says RELAX

Posted by ScuttleMonkey on Mon Dec 04, 2006 10:26 PM
from the holy-war-schema-2.7 dept.
twofish writes to tell us that Sun's Tim Bray (co-editor of XML and the XML namespace specifications) has posted a blog entry suggesting RELAX NG be used instead of the W3C XML Schema. From the blog: "W3C XML Schemas (XSD) suck. They are hard to read, hard to write, hard to understand, have interoperability problems, and are unable to describe lots of things you want to do all the time in XML. Schemas based on Relax NG, also known as ISO Standard 19757, are easy to write, easy to read, are backed by a rigorous formalism for interoperability, and can describe immensely more different XML constructs."

Related Stories

[+] Developers: XML Co-Creator says XML Is Too Hard For Programmers 608 comments
orangerobot writes "Tim Bray, one of the co-authors of the original XML 1.0 specification has a new entry on his website explaining why he's been feeling unsatisified lately with XML and says his last experience writing code for handling XML was 'irritating, time-consuming, and error-prone.' XML has always a divided response among the technical community. The anti-XML community has several sites stating their positions."
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.
  • Don't do it. (Score:4, Funny)

    by Anonymous Coward on Monday December 04 2006, @10:27PM (#17108948)
    When you want to come.
    • Re:Don't do it. by Loconut1389 (Score:2) Monday December 04 2006, @10:49PM
      • Re:Don't do it. by Keith Russell (Score:1) Monday December 04 2006, @11:13PM
        • 1 reply beneath your current threshold.
      • Re:Don't do it. by Sporkinum (Score:2) Monday December 04 2006, @11:32PM
    • Re:Don't do it. by hotdiggitydawg (Score:2) Tuesday December 05 2006, @07:35AM
    • 2 replies beneath your current threshold.
  • Couldn't agree more (Score:5, Insightful)

    by antonyb (913324) on Monday December 04 2006, @10:36PM (#17108994)
    My experience with XML Schema is exactly that; hard to write in the first place, hard to maintain, and regular interop problems between different implementations that make the theory of web services a practical nightmare (idrefs are the first example that spring to mind).


    On the other hand, RELAX NG "just works".

    (all IME of course...:)

    ant.

  • I have to agree. (Score:4, Insightful)

    Has anyone here ever tried to read an XML schema for anything relatively complex? It's a nightmare. RELAX looks much cleaner and more direct, which I wholeheartedly approve of.
    • Re:I have to agree. (Score:5, Interesting)

      by sien (35268) on Monday December 04 2006, @10:55PM (#17109112)
      (http://slashdot.org/)
      Yes. I've done it using Relax NG [relaxng.org] and it was easy, simple and readable.

      It also works really, really well with the nXML [thaiopensource.com] mode for emacs.

      Finally, XML schemas in a way that are not verbose, ugly and unreadable. And if you do need one of the older schema languages there are translators from RelaxNG available.

      [ Parent ]
      • Re:I have to agree. (Score:5, Interesting)

        by radtea (464814) on Monday December 04 2006, @11:47PM (#17109446)

        I was at SGML '96 where XML was first announced, and was one of those people who went home and wrote a (non-validating) XML parser over the weekend, based on the draft spec. I've used both DTDs and XML Schemas and can say without question that schemas are actually a bigger pain to work with than DTDs. DTDs were bad enough, but schemas have been a major step backwards, adding complexity without adding the features one actually needs.

        Some years ago I wrote a code generator that used DTDs as the data modelling language. I sold it to the company I was working for at the time and someone I had no control over re-wrote it use schemas because they were "simpler". The result had major bugs and dropped features, not entirely due to schema-related problems, although it is worth noting that the "simplifications" included handling schemas in completely incorrect ways, because if you handled them correctly they could not do the job. I created a new generator from scratch last year and tried to do thing "properly" with schemas. It was essentially impossible, and I wound up creating a custom XML-based language use as input.

        At the time there was no Relax NG standards process, so I stayed clear of it. But it has the blessing of James Clarke too (author of the SP SGML parser and the expat XML parser.) So it is probably worth another very hard look.
        [ Parent ]
    • Just keep the data types by ishmalius (Score:2) Saturday December 09 2006, @06:24AM
  • To the point. (Score:2, Funny)

    by jhd (7165) <xero@eskimo.com> on Monday December 04 2006, @10:40PM (#17109030)
    "W3C XML Schemas (XSD) suck"

    Hey Tim, don't hold back, tell us what you really think.
    • 1 reply beneath your current threshold.
  • I agree! (Score:3, Funny)

    by Maddog787 (1021593) on Monday December 04 2006, @11:06PM (#17109174)
    I refuse to use XML in any shape way or form no matter what anyone say or does with it!!!
  • by KalElOfJorEl (998741) on Monday December 04 2006, @11:12PM (#17109202)
    Between this standard and REST, it looks like we have some very lazy web services, RESTing and RELAX NG all the time . . .
  • Telltale Sign... (Score:2)

    by PipianJ (574459) on Monday December 04 2006, @11:35PM (#17109364)
    I've been picking up Emacs lately, and the xml-mode standardly used (nxml-mode) uses RELAX over XML Schema. I suspect that probably says a lot for RELAX's parseability. I've had just a little bit of experience playing around with Schemas and they seem about as navigable as DTDs, which is to say not very. I haven't tried RELAX though.
  • by SimHacker (180785) on Monday December 04 2006, @11:38PM (#17109388)
    (http://www.donhopkins.com/ | Last Journal: Monday February 23 2004, @09:48AM)

    Relax NG is a great example of the triumph of Design-by-Inspired-Individuals vs. Design-by-Committee.

    In The State of XML [xml.com], Edd Dumbill explains the secret behind the success of Relax NG:

    Incidentally the RELAX NG success can equally well be framed as a case of design-by-inspired-individuals vs. design-by-committee as much as it can be seen as a OASIS vs. W3C thing.

    -Don

  • by iamacat (583406) on Monday December 04 2006, @11:48PM (#17109452)
    With a notation similar to RELAX NG compact syntax. XML has been a killer of readable formats like windows-style ini files. It tries to be readable by both human and machine and succeeds at neither. It's like programming in assembler, because it can be read by a human better than machine code and compiled faster than C.
  • Speaking of XML, how much smaller would XML files be if they made one minor simple change...

    Add to mean "close the matching element".

    *sigh* I wish I'd been on the committee when they specified the standard.

    • Re:One fix to XML I'd like to have... by Reality Master 101 (Score:3) Tuesday December 05 2006, @12:03AM
      • by nuzak (959558) on Tuesday December 05 2006, @12:21AM (#17109598)
        That feature is in SGML. In fact it can be even shorter than that, you can express an entire tag and its content with <tag/content goes here/ (even the ending > is optional). SGML even lets you change the angle brackets to anything else you want. You can make any SGML doc look like nothing you or anyone else has ever seen ... all part of the feature set.

        SGML is full of fun little hacks like that, and it was a pain in the ass to read. Omitting the tag name from the end tag makes it impossible to know you have an improperly closed tag til the end of the document, and then you have no idea which tag wasn't closed. And no, that wasn't a theoretical problem either, this became a real problem with giant SGML docs that used all the shortcuts.

        If you really hate XML's verbosity so much, realize that it was designed for easy reading, not easy writing. I whipped up my own xml mode in emacs and made '</' trigger an "electric-slash" behavior that closes the tag automatically. Not rocket science.

        [ Parent ]
    • Re:One fix to XML I'd like to have... by horster (Score:2) Tuesday December 05 2006, @12:13AM
    • Re:One fix to XML I'd like to have... by Electrum (Score:2) Tuesday December 05 2006, @01:06AM
    • Re:One fix to XML I'd like to have... by Nasarius (Score:2) Tuesday December 05 2006, @01:12AM
  • XML nightmare (Score:4, Insightful)

    by rgaginol (950787) on Tuesday December 05 2006, @12:25AM (#17109614)
    If XML Schema was a work colleague they would be Wally from Dilbert - it's not that things are impossible to do with it, it's just that the relative simple things become hard and the complex almost impossible. Due to the fact that almost anything is possible with XML schema with enough work (weeks, months years...) instead of just scrapping it, people keep at it doggedly despite the number of times we get bitten. I'd love to see the community move more completely to RELAX NG if it makes my life easier.
  • XSD: "Mission Accomplished!" (Score:4, Funny)

    by SimHacker (180785) on Tuesday December 05 2006, @12:33AM (#17109660)
    (http://www.donhopkins.com/ | Last Journal: Monday February 23 2004, @09:48AM)

    From the xml-dev [xml.org] mailing list:

    From: Rick Jelliffe
    To: xml-dev@lists.xml.org
    Date: Wed, 29 Nov 2006 12:46:06 +1100

    Robert Koberg wrote:

    I wonder if the people who think RNG won have "Re-elect Gore" bumper stickers...

    Maybe a better analogy would be that the people who say that XSD is lovely is Mr Bush's "Mission Accomplished!"

    Though of course there are differences between Iraq and XSD. One seems to be about people with their own fiefdom agendas stubbornly miring us in a quagmire, using a grabbag of thin reasons to justify it, denying any evidence that things are not rosy, perpetually promising that things are turning around, and enmeshing all sorts of decent people in a life of horror, difficulty and with no confidence in accomplishing the mission. The other is in the Middle East.

    Just joking...
    Rick

  • Slashdot tags are officially useless. Who the hell is going to search for "dontdoit" when looking for this article.
  • Relax NG. (Score:2)

    by miguel (7116) on Tuesday December 05 2006, @01:07AM (#17109864)
    (http://tirania.org/blog)
    Mono has complete support for RelaxNG in the form of the Commons.Xml.Relaxng assembly.

    In addition to RelaxNG, it provides NVDL and RNC support.

    • Re:Relax NG. by SeaFox (Score:3) Tuesday December 05 2006, @01:16AM
  • by SashaMan (263632) on Tuesday December 05 2006, @01:13AM (#17109892)
    As someone who has used XML schemas pretty extensively, I was pretty amazed at how I was able to skim through the tutorial in about 10 minutes and understand Relax NG, versus reading an entire XML Schema book and still needing to refer to it whenever I write schemas.

    One thing I really like about Relax NG is that it's possible (with very easy syntax) to constrain the XML structure based on an attribute value, something you can't do in schema or a DTD. For example, suppose you want to have an XML element:

    true
    '
    With Relax NG it's possible to constrain the text in the arg element (e.g. "true" or "false") based on the value of the type attribute. For example, if type="int", you could limit the text in arg to an integer value. This is something you can't do in schemas or dtds.
  • by SuperKendall (25149) on Tuesday December 05 2006, @02:06AM (#17110144)
    Since you are simplifying your life by making the schema for web requests simpler, why not go all the way, ditch SOAP, and embrace REST [xfront.com] for XML-over-HTTP communications?
  • by Qbertino (265505) on Tuesday December 05 2006, @02:57AM (#17110450)
    I call this the Line of View (as in PoV) or 'Horizon' Problem. The general problem is this: In XML we've got a standard that is universal for displaying n-dimensional structures in a basically 1-dimensional enviroment. (For the time being, we're ignoring that XML text ususally goes from left to right and top to bottom, making that something 2D to look at)
    The question now is: where do you draw the line of view? Along which line do I take my knife to cut open my n-dimensional structure to unravel it and flatten it out into a 1-dimesional string of characters? This is a problem that is impossible to solve satisfactory for all possible PoVs or - as I say - Lines of View, or better yet, Horizons to the structure. Will I unravel my DB of books by authors? By issues? By vendors? By publishers or by weight and size? ... At some point you will have to look at in which way you want to handle your stuff and which way you're going to unravel it. This will undoubtly influence on how much XML clutter you will have to construct. With XML it's the same as with databases: It/they will allways be pathetic crutches for us to latch on to the real work. Undispensable, but crutches nontheless.

    What I'm getting to is this: mapping n-dimensional stuff to 1-dimensional structures will allways suck one way or the other. It's just that with XML we all start agreeing upon in which way it's supposed to suck. I don't think that changing the Schema standard (or worse: introducing additional standards) will actually attack this hard problem. I have a strong suspicion that Relax NGs relief is illusional, short term and re-introduces downsides that XML Schema allready has takled with it's pesky and strict nature. For one it would be consistency with the View-Horizon once chosen all the way through the given data-structure. I don't know for shure - go test and find out - but I do know that universal serialization will allways come with downsides and RelaxNG (or any other schema) won't change that.
  • Wait wait wait (Score:1)

    by bytesex (112972) on Tuesday December 05 2006, @03:53AM (#17110748)
    (http://ufy.sourceforge.net/)
    This guy claims that this:

    <element name="addressBook" xmlns="http://relaxng.org/ns/structure/1.0">
      <zeroOrMore>
        <element name="card">
          <element name="name">
            <text/>
          </element>
          <element name="email">
            <text/>
          </element>
        </element>
      </zeroOrMore>
    </element>

    is easier to read than this:

    <!DOCTYPE addressBook [
    <!ELEMENT addressBook (card*)>
    <!ELEMENT card (name, email)>
    <!ELEMENT name (#PCDATA)>
    <!ELEMENT email (#PCDATA)>
    ]>

    WTF ?!
    • Re:Wait wait wait by Anonymous Coward (Score:1) Tuesday December 05 2006, @07:52AM
    • YES YES YES! by Anonymous Coward (Score:1) Tuesday December 05 2006, @02:33PM
    • Re:Wait wait wait by Skjellifetti (Score:2) Tuesday December 05 2006, @04:42PM
    • 1 reply beneath your current threshold.
  • by Tim12s (209786) on Tuesday December 05 2006, @04:23AM (#17110866)
    (http://twelves.blogspot.com/)
    I have enough experience with Relax NG to say that it is great.

    The compact syntax is enjoyable as you can be quite precise (compared to XSD) and there are tools that convert between the compact syntax and the xml Relax NG syntax allowing you to use syntax that suites your needs. In general, JING it is quite a bit quicker than a few of the XSD validators for comparably complex schemas.

    There are a few disadvantages:

    * The full range of tools that are available are not advanced on a regular basis. I found a few bugs in the JING source code and had the opportunity to fix them where necessary.

    * I feel that RelaxNG is marginalized because of XSD and along with that goes alot of additional OSS support. They are maintained by individuals instead of teams. I would recommend that the author of JING puts his software forward to the apache foundation (jakarta commons) and see if it can attract a bit more attention.

    * Web services are a bit of a sticking point. The use of a Relax NG schema can be embedded into the WSDL, however, the various 3rd party clients may not necessarily understand the schema, and by extension, they would not generate any supporting classes making integration with a relax NG defined webservice a little more complex than it needs to be.

    Relax NG really is great.

    -Tim
  • by master_p (608214) on Tuesday December 05 2006, @05:48AM (#17111352)
    I don't see why XML schemas has to exist. BNF notation serves the exact same purpose: it describes a grammar. A BNF-like derivative is more than enough to define XML schemas. The compact syntax of RELAX NG is just that, and a bright idea.

    It is really annoying when CS has to be discovered all over again. The problem of validating text to a certain format has been solved many decades ago, and BNF and variations of are known from the 60s...
     
  • (damn short subject lines!)

    I agree that RelaxNG is much easier to read, and it will much more completely describe a grammar than will the other standard - and MUCH more completely define it than will a DTD.

    Unfortunately, as far as I can tell there is no way to, within an XML document, state "Use THIS RelaxNG schema file to validate this document", as you can with a DTD. Thus, even if I have placed my RelaxNG schema on my web server, I cannot set things up such that (for example) libXML2 can automatically fetch that schema when it starts parsing my document. I can map the RelaxNG schema to a DTD (losing information) and allow that to be fetched, but if I want to use a RelaxNG schema with libXML2 I the programmer must tell libXML2 where the schema is.

    IMHO it would be a Good Thing if the W3C would standardize on some way to associate a RelaxNG schema with a given XML file - say, by some form of XML processing directive within the XML file.
    • 1 reply beneath your current threshold.
  • Polishing a turd (Score:2)

    by 955301 (209856) on Tuesday December 05 2006, @10:41AM (#17113622)
    (Last Journal: Thursday December 08 2005, @11:00PM)
    Schema definition by it's nature is tedious but necessary at this point. If you're going to take a standard thats already entrenched and suggest everyone stop and polish the edges from it how about we kill the verbosity of the xml end-tag instead?

    Do we lose anything other than bandwidth use by doing this,

    <tagNameThatCanBeLong>Some Text</>

    instead of this:

    <tagNameThatCanBeLong>Some Text</tagNameThatCanBeLong>

    If the next end tag must belong to the last start tag what's the point of naming it?

  • by GroovinWithMrBloe (832127) on Monday December 04 2006, @10:59PM (#17109122)

    if something, anything, is intended to be primarily parsed by machine, use xml

    xml is a b**ch to read
    Don't forget what we used to use... binary is even worse. XML was designed with people in mind, which is why it's easier for people to read and manipulate than your traditional binary file format.
    [ Parent ]
    • Re:it's a rather straightforward observation by radtea (Score:3) Monday December 04 2006, @11:51PM
    • XML uses a binary format (Score:5, Insightful)

      by ClosedSource (238333) on Tuesday December 05 2006, @12:12AM (#17109550)
      Of course ASCII (or UNICODE for that matter) is a binary standard as well. So special tools called text editors were created so that people could read it.

      There are more sophisticated binary standards that are more efficient than ASCII and it wouldn't take a lot of effort to create viewers/editors for them as well. Of course most markup documents would be significantly smaller if tags didn't have to be S-P-E-L-L-E-D O-U-T character by character. Each HTML tag could be encoded in just two bytes with lots of room to spare.

      It always fascinates me that we have no problem making customers use a new specialized tool like a browser, but it's taboo to use a non-ASCII tool for development. So we continue to structure our data as if it were going to be processed by a VT100.
      [ Parent ]
      • Re:XML uses a binary format by Al Dimond (Score:2) Tuesday December 05 2006, @12:34AM
      • Re:XML uses a binary format (Score:4, Interesting)

        by 2short (466733) on Tuesday December 05 2006, @02:11AM (#17110172)

        You could certainly make XML vastly more compact if you had some table of tags mapped to 2-byte codes. You're not the first to have such an idea, and I and others will be happy to use it... as soon as you've got it standardized, implemented, and as widely accepted as ASCII. Point being, I, and everyone I've never even met who will ever touch some particular XML file, already has a text editor.

        We also all have some way of decompressing files in several standard compression formats, which will squash the XML down to the same size as your custom scheme, if storage space is an issue, which it generally isn't. There's all manner of custom schemes one can use to do various things better when one defines the platform. When you want to inter-opperate well, you need to use the capabilities that already exist on only semi-known systems.

        Generally we don't actually make customers use new specialized tools. We take advantage of the new specialized tools they already have. I'm pretty sure not one of my customers ever got a browser to read my documentation; I wrote it in HTML because they've all got browsers already.
        [ Parent ]
      • Re:XML uses a binary format by Tei (Score:1) Tuesday December 05 2006, @04:19AM
      • Re:XML uses a binary format by dkf (Score:2) Tuesday December 05 2006, @05:20AM
      • Re:XML uses a binary format by lahi (Score:2) Tuesday December 05 2006, @06:09AM
      • Re:XML uses a binary format by ClosedSource (Score:2) Tuesday December 05 2006, @11:58AM
      • 1 reply beneath your current threshold.
  • Re:Just sit back... (Score:5, Informative)

    by ubernostrum (219442) on Monday December 04 2006, @11:04PM (#17109156)
    (http://www.b-list.org/)

    What kind of programmer can't use XML effectively anyhow...oh wait... (No, I didn't read TFA!)

    Helpful hint for understanding the above: Tim Bray, author of TFA, is one of the guys who originally developed and spec'd out XML. Really. His name's on the spec [w3.org] and everything. So if he says that a particular XML tool has problems, it's probably a good idea to take him at his word ;)

    [ Parent ]
  • Re:XML Totally Sucks - All of it! (Score:3, Insightful)

    by beavis88 (25983) on Monday December 04 2006, @11:04PM (#17109158)
    And if you can't have a DB connection?

    For flat data, sure a flat file is fine...for structured/hierarchical data, a flat file is :(
    [ Parent ]
  • by Peter Cooper (660482) on Monday December 04 2006, @11:06PM (#17109180)
    (Last Journal: Wednesday July 06 2005, @10:01PM)
    Check out YAML. [wikipedia.org]
    [ Parent ]
  • Re:XML Totally Sucks - All of it! (Score:2, Insightful)

    by Anonymous Coward on Monday December 04 2006, @11:09PM (#17109196)
    XML would be great if people validated their XML files before sending them out. And cut the verbosity and redundancy down by 90%. And used english elements instead of numbers. Ahh XML, the ideal most people pay lip service to but up to which they fail to live.
    [ Parent ]
  • Relax NG's compact non-XML syntax (Score:2, Interesting)

    by SimHacker (180785) on Monday December 04 2006, @11:33PM (#17109346)
    (http://www.donhopkins.com/ | Last Journal: Monday February 23 2004, @09:48AM)

    Relax NG has a compact non-XML syntax. But C++/Java is a horrible syntax to use if you want a language to be readable and easy to understand. Since when was 17 levels of operator precedence [wikipedia.org] easy to understand? Of course any good programmer always uses parenthesis to avoid ambiguity, so why should a language have 17 levels of built-in ambiguity just to make it that much easier to make hard to find mistakes?

    -Don

    From my blog: Relax NG Compact Syntax: no to operator precedence, yes to annotations! [donhopkins.com]

    James Clark [jclark.com] is a fucking genius! Hes the guy who wrote the Expat XML parser, works on Relax NG [oasis-open.org], and does tons [jclark.com] of other important stuff. Relax NG is an ingeniously designed, elegant XML schema language based on regular expressions, which also has a compact, convenient non-xml syntax [oasis-open.org].

    I totally respect the way he throws down the gauntlet on operator precedence (take that you Perl and C++ weenies!):

    There is no notion of operator precedence. It is an error for patterns to combine the |, &, , and - operators without using parentheses to make the grouping explicit. For example, foo | bar, baz is not allowed; instead, either (foo | bar), baz or foo | (bar, baz) must be used. A similar restriction applies to name classes and the use of the | and - operators. These restrictions are not expressed in the above EBNF but they are made explicit in the BNF in Section 1.

    You can translate back and forth between Relax NG's XML and compact syntaxes with full fidelity, without losing any important information. Relax NG supports annotating the grammar with standard and custom namespaces, so you can add standard extensions and extra user defined meta-data to the grammar. That's useful for many applications like user interface generators, programming tools, editors, compilers, data binding, serialization, documentation, etc.

    Here's an interesting example of a complex Relax NG application: OpenLaszlo [openlaszlo.com] is an XML/JavaScript based programming language, which the Laszlo compiler translates into SWF files for the Flash player. The Laszlo compiler and programming tools use this lzx.rnc Relax NG schema for the OpenLaszlo XML language [openlaszlo.org]. This schema contains annotations used by the Laslzo compiler to define the syntax and semantics of the XML based programming language.

    The schema starts out by defining a few namespaces:

    default namespace = "http://www.laszlosystems.com/2003/05/lzx"
    namespace rng = "http://relaxng.org/ns/structure/1.0"
    namespace a = "http://relaxng.org/ns/compatibility/annotations/1 .0"
    datatypes xsd = "http://www.w3.org/2001/XMLSchema-datatypes"
    namespace lza = "http://www.laszlosystems.com/annotations/1.0"

    The a: namespace [oasis-open.org] defines some standard annotations like a:defaultValue, and the lza: namespace defines some custom annotations private to the Laszlo compiler like lza:visibility and lza:modifiers. Thanks to the ability to annotate the grammar, much of the syntax and semantics of the Laszlo programming language are defined directly in the Relax NG schema in the compact syntax, so any other tool can read the exact same definition the compiler is using!

    To show how truly simple and elegant it is, here is the snake eating its tail: The Relax NG XML syntax, written in the Relax NG compact syntax:

    # RELAX NG XML syntax specified in compact syntax.

    default namespace rng = "http://relaxng.org/ns/structure/1.0"
    namespace loc

    [ Parent ]
  • Re:XML Totally Sucks - All of it! (Score:2, Insightful)

    by pleb1024 (786643) on Monday December 04 2006, @11:33PM (#17109352)
    Totally agree.

    While XML may have it's places (I've yet to encounter one in the commerical world), passing large amount of data is not one of them. A good flat file design is a lot more efficent than XML, and short of hardware accelartion I don't see that changing.

    I'm currently trying to assist a customer, whose changing from one system to another, the current system generates flat files of approx 2gig in size every couple of days (billing data). The new system produces files of approx 13gig. The data contained within files result in the exact same bill being produced for the customers.

    Needless to say, the extra diskspace (yes we do compress them), and processing time to parse/compress is such a waste.

    In my mind, XML trades shorter development time / 'portability' (well so the theory goes), for greater resource usage (CPU/Disk), whereas most customers I've dealt with would rather take a little longer to develop, and have a lot less resource limitation issues on the production systems. The old methods of 'just throw more hardware at it' just don't work in the real world anymore.
    [ Parent ]
  • then why are you using an ASCII encoding in the first place? Those tags just lower the signal to noise ratio. Even Apple's given up and started saving their meta data in a "compiled" version of XML.

    Oh, and, "Hi! How you doing? Long time no see!"
    [ Parent ]
  • xml is a b**ch to read
    Beats EDI [wikipedia.org].

    I'll take XML over a positional format any day, even if it only has to be looked at by human eyes 5% of the time. If you find yourself in a situation requiring eyeball examination of purchase order/shipping data at a large electronic commerce company it is likely an emergency and <ctrl>-f 'ing for a tag name, or using a web browser to check well-formedness can be a lifesaver.
    [ Parent ]
  • xml is a b**ch to read

    Like any other formalism, it's difficult until you get used to it. The more familiar you are with a particular XML tagset and markup conventions, the easier it is to pick out the relevant structures and information. I remember being apalled at the verbosity of XSLT when I first begin to use it, but nowadays if I'm working with well structured XSLT code (and color-coding in the editor) I can scan it pretty efficiently.

    That said, a non-XML syntax is almost always going to be more human-friendly. Which is another advantage of RELAX NG, of course, since it has a compact syntax that translates back and forth without loss of information to the XML form of the language.

    [ Parent ]
  • by Anonymous Coward on Monday December 04 2006, @11:43PM (#17109420)
    "I may be old school, working with flat files and all for over 20 years, but I do work with a lot of newer technology."

    Well I'm your counterpart in India and I'm happy to hear you're having problems getting use to newer technologies. Keep up the good work.
    [ Parent ]
  • Re:MyXML scheme (sucks too) (Score:1, Funny)

    by Pulse_Instance (698417) on Monday December 04 2006, @11:56PM (#17109494)
    it would work but only if you express your idea like this
    1. Post ingenious scheme on Wikipedia
    2. Proclaim international standard
    3. ...
    4. Profit!!!
    [ Parent ]
  • 11 replies beneath your current threshold.