Lists Home |
Date Index |
> Sadly, it's not very nice to look at in XML; I prefer the
> approach myself *wicked grin* :-)
> Name: "Alaric Snell"
> FaveFood: (Food ...))
Not sure if you are being serious, but I will take a shot at XML and S-expressions just in case.
Sadly, S-Expressions are not much better than XML to look it. Its a little easier to make the content well formed. The problem is using tokens like '(' or ')' to seperate elements, which are great for machine parsing, are hard for people to get visually. Some languages do a much better job than lisp (and pretty much every other language) and XML: haskell and sox http://www.langdale.com.au/SOX/ are two great examples.
here is a sox fragment:
title> My Home Page
h1> Contact Details
Few lines, extremely easy to read.
I think the killer editor for xml would be something like emacs, VS.Net, or any other smart editor that lets one edit in a SOX view, and saves/reads in XML 1.0, and figures out where errors are in sox view if the file is not well formed (although poor-formedness would be harder because of the syntax, its still can be hard to track down with entity references).
Most XML editors I have played with have been really annoying -- editing in some tree/grid type user interface is just not convenient, and its too hard to make the start and end tags match. The auto-insert of close tag features some text editors have is much less practical than closing an S expression or removing a level of indentdation.
I think a very interesting article about XML would be how it came to be; why is is tagged text instead of SOX or s-expressions? What are the drawbacks culturally and tecnically. If SGML weren't already in existance, would tagged text still have been the design?
I love XML; I just wish it weren't so clumsy to edit.
> A city is like a large, complex, rabbit
> - ARP
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> The list archives are at http://lists.xml.org/archives/xml-dev/
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>