quote:
Original post by joelmartinez
And that right there is part of the appeal of XML ... Even if I had never seen the spec for a document I was looking at (as with this), I'd be able to figure it out just by looking at it and work it into my app.
You're talking a different thing. The whole point of the s-expression example is that it can't easily be expressed in XML. Any result is likely to be less readable.
You should not be making wild claims that you can understand all XML documents just by looking at them. Just because a tag has a particular name does not mean you should be guessing at the semantics of the tag, or that you will guess correctly. You're being rather naive about things here.
quote:
I think we're both starting to talk about totally different things here. To me, XML is simply a means of storing information ... not using it as a scripting language, or anything else as you seem to be implying (or the posts for that matter).
You're absolutely missing the point, so it's no wonder you think I'm talking about something different. The point being that each and every useful piece of data in a system has some semantic meaning, and the semantics have to be conveyed somewhere. Nobody's talking about a scripting language (although you might like to note XML is indeed being adapted to scripting uses, such as XSLT).
quote:
Perfect example is SVG. What better way to store vector graphics than XML.
Well, isn't it rather obvious that I'd suggest s-expressions as a better way?
quote:
This way, the file can be read and modified very easily by any application without having to know some obscure binary file format.
I've not mentioned binary formats. Please try and stay on track. If we're talking cross purposes, it's because you are straying from the topic. Let me remind you that Themonkster claimed nothing else has the flexibility of XML, to which I replied s-expressions have all the flexibility and more. Since then, you have argued against s-expressions on the basis of:
a) Kaz's example of something XML cannot neatly express is difficult to understand;
b) XML is better than CSV;
c) XML is better than binary.
It is possible that any symbolic expression can be recast as an XML document, with the result almost always being more verbose, and possibly more complex due to the limited semantics of XML. This is directly analogous to arguments of Turing completeness. Quite simply, s-expressions are a far superior medium for conveying structure and semantics than is XML. Read the Usenet posts again.
[edited by - SabreMan on February 12, 2003 12:26:20 PM]