Flutterby™! : XML

Next unread comment / Catchup all unread comments User Account Info | Logout | XML/Pilot/etc versions | Long version (with comments) | Weblog archives | Site Map | | Browse Topics

XML

2006-11-06 16:08:50.209814+01 by Dan Lyke 3 comments

Dave has been struggling with XML. Despite my occasional snide comments about XML I'm pretty facile with it, but recently I did some work on Yadis that involved lots of namespaces, and I realized that it's evolved to be a set of technologies in search of solutions. Yeah, there's lots of interesting stuff there, but it starts to descend into the ludicrous, and pretty soon I got to thinking "even if it's UTF-8, why aren't we doing this as "name: value" pairs separated by newlines?

[ related topics: Interactive Drama Web development Content Management Work, productivity and environment Guns Archival ]

comments in ascending chronological order (reverse):

#Comment Re: XML made: 2006-11-06 19:00:54.232042+01 by: Jack William Bell

Many people agree with you (see xmlsuck.org ). For XML alternatives, I prefer JSON ( http://json.org/ ), but YAML seems equally simple ( http://www.yaml.org/ ).

My opinion? I like XML just fine; I am even reasonably proficient in XSLT and XPath. But if all you need is a lightweight data interchange format, XML is overkill for your needs. Moreover, if the only way you know of to process XML is to load it into a DOM and start navigating the tree, your code may end up ugly with a capital 'UGH'. (I mentioned XSLT and XPath above for a reason.)

Jack William Bell

#Comment Re: made: 2006-11-07 11:13:24.970837+01 by: DaveP

I was really missing key-value pairs, myself.

I'm still pondering just scrapping the "real" parsing and sucking what I need out of the stream with regexps. It'll be ugly and fragile, but I'd be done.

#Comment Re: made: 2006-11-07 14:06:41.203737+01 by: meuon

I'd never seen YAML, and I hope I don't have to, even their example made me think back to archaic data formats of the 1980's. XML is very useful, when used properly and kept sane. Just because it's a "natively supported" format for Flash, JavaScript and Java, it makes sense to use. I've also seen it used badly, a lot.

I still use a lot of name=value<cr> pairs, data|data|data<cr> and url encoded (post as well as get). Unless the implementation is very very strange, or there is insane amounts of data, I really don't care what format it is in. It's all just another markup language...

Comment policy

We will not edit your comments. However, we may delete your comments, or cause them to be hidden behind another link, if we feel they detract from the conversation. Commercial plugs are fine, if they are relevant to the conversation, and if you don't try to pretend to be a consumer. Annoying endorsements will be deleted if you're lucky, if you're not a whole bunch of people smarter and more articulate than you will ridicule you, and we will leave such ridicule in place.


Flutterby™ is a trademark claimed by

Dan Lyke
for the web publications at www.flutterby.com and www.flutterby.net.