KBD

Keith Devens .com

Monday, December 1, 2008 Flag waving
And we know that in all things God works for the good of those who love him, who have been... – Paul (Romans 8:28)
← Support our troopsidiomatic Perl →

Daily link icon Monday, March 17, 2003

The pain of XML

BitWorking:

Ok, when I ask for Regex-able XML, and complain that the pathologies of XML are the root cause of the problem, I might sound like a simpering newbie who just doesn't know how to use the available tools. So how about listening to a guy who's been doing XML longer than almost anybody: Tim Bray.

So check out Tim Bray's XML Is Too Hard For Programmers.

The most interesting thing I took from Bray's article is this: Years and years after relational database technology is mature, we still spend a lot of our time writing code to shuffle data to and from tables. Similarly, with the callback model of XML processing he's talking about, we spend a lot of time trying to use XML.

Plus, I keep hearing proposals for XML-based programming languages. That's the silliest thing in the world to me, and Bray agrees:

An XML-Oriented Programing Language? One response has been a suggestion that we need a language whose semantics and native data model are optimized for XML. That premise is silly on the face of it: here are two reasons why:

* Some decades after the advent of the relational database, we have not seen programming languages center themselves around normalized data models; in fact, the movement away from the C struct-centered worldview to O-O code+data encapsulation is really a move away from the tabular paradigm. You can embed SQL in most languages now, but normally you don't implement any serious business logic in it. If this hasn't happened after decades in the relational world, why would we expect it to happen in the XML world?

* The notion that there is an "XML data model" is silly and unsupported by real-world evidence. The definition of XML is syntactic: the "Infoset" is an afterthought and in any case is far indeed from being a data model specification that a programmer could work with. Empirical evidence: I can point to a handful of different popular XML-in-Java APIs each of which has its own data model and each of which works. So why would you think that there's a data model there to build a language around?

Update: Here's a response from XML.com

← Support our troopsidiomatic Perl →

Comments XML gif


Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

December 2008
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 5 posts

Recent comments XML

new⇒Free image hosting sites

Well, TinyPic has this in its​FAQ:

> Images and videos is in​your accoun...

Keith: Dec 1, 1:13am

new⇒Join a NameValueCollection into a querystring in C#

Well with a lamba expression, this​is what I came up​with:

?!code:csharp...

Gustaf Lindqvist: Nov 30, 4:38pm

Why no generic OrderedDictionary?

Check​http://www.codeproject.com/KB/recip​es/GenericOrderedDictionary.aspx?d...

Gabrielk: Nov 27, 6:57am

WhatIsMyIP.com

http://www.thesysteminfo.com is​another good alternate to​whatismp.com... I...

Kripz: Nov 26, 8:51pm

Girls, please don't get breast implants

Actually I think it's sweet when a​man loves a woman whether she's big​or n...

218.186.12.228: Nov 26, 9:40am

Generated in about 0.212s.

(Used 8 db queries)

mobile phone