| Store | Cart

XML overuse? (was Re: Python to XML to Python conversion)

From: Alex Martelli <ale...@aleax.it>
Fri, 12 Jul 2002 08:37:59 GMT
Jonathan Hogg wrote:
        ...
> I'm not sure it is possible to "overuse" XML. 

It is -- easily.  My pet peeve is the idea of using XML files for
tasks that obviously need a real database, preferably a relational one.

I think some people never really GOT relational databases, no matter
that they've been around for decades and are so widespread, and they're
now turning to *overusing* XML to cover up for that:-).

> If you need to read and> write structured data, why bother coming up with your own format? (see:> the entire contents of /etc) Or why use something that is proprietary to a> particular language or system? (see: Pickle)

Speed, size, and convenience are possible reasons.  If the structure
is highly repetitious, and the amount of data is very large, then
repeating the tags identically a zillion times can impose substantial
overhead of space and time.  Pickling and unpickling can be (say)
twice as fast and consume half as much space as going to an XML
format.  That doesn't really matter unless the amounts of data are
huge, of course.  But the point is, sometimes they ARE.  I/O-bound
programs are hardly a thing of the past: CPU's get faster much
faster than networks and disks get faster.

The need to search "random-access" wise, or "keyed"-wise, is often
an excellent reason to avoid a format that requires reading though
all of a file to get at a particular piece of data.  dbm variants,
shelve, and relational databases, can be huge wins here (compared to
XML, pickle, or any other choice requiring whole-file reloading).

While XML is reasonably human-editable, there may well be formats
that are more convenient than it for this purpose, avoiding the
need of special-purpose XML-oriented editors and allowing the use
of any good old text editor with maximal ease.  This is a good
reason to keep a human-editable configuration file in non-XML
form, in my opinion.


Let's try to avoid pro-XML hype in an attempt to counter the
anti-XML hype that's suddenly burst on this group...:-)


Alex

Recent Messages in this Thread
Mark Jul 12, 2002 12:08 am
Harry George Jul 12, 2002 12:01 am
theh...@binary.net Jul 12, 2002 01:22 am
Jeremy Bowers Jul 12, 2002 03:01 am
Peter Hansen Jul 12, 2002 03:41 am
Oren Tirosh Jul 12, 2002 05:54 am
Erik Max Francis Jul 12, 2002 08:16 am
Tim Rowe Jul 12, 2002 04:37 pm
François Pinard Jul 12, 2002 02:49 pm
Peter Hansen Jul 12, 2002 04:08 pm
Jeremy Bowers Jul 12, 2002 02:52 pm
Huaiyu Zhu Jul 12, 2002 05:45 pm
holger krekel Jul 13, 2002 02:55 pm
Huaiyu Zhu Jul 15, 2002 06:04 pm
holger krekel Jul 16, 2002 01:18 pm
Clark C . Evans Jul 16, 2002 06:27 pm
Steve Howell Jul 16, 2002 06:31 pm
Huaiyu Zhu Jul 16, 2002 10:14 pm
Clark C . Evans Jul 17, 2002 01:30 am
James Kew Jul 17, 2002 10:52 pm
François Pinard Jul 18, 2002 11:11 am
Huaiyu Zhu Jul 18, 2002 06:10 pm
Huaiyu Zhu Jul 18, 2002 06:36 pm
Matt Gerrans Jul 12, 2002 07:03 am
Jonathan Hogg Jul 12, 2002 08:07 am
Clark C . Evans Jul 13, 2002 12:29 am
Alex Martelli Jul 12, 2002 08:01 am
Jeremy Bowers Jul 12, 2002 02:55 pm
Jeremy Bowers Jul 12, 2002 03:53 pm
Terry Reedy Jul 12, 2002 02:03 am
David Mertz, Ph.D. Jul 15, 2002 02:49 pm
Alex Martelli Jul 12, 2002 02:03 pm
Jonathan Hogg Jul 12, 2002 03:11 pm
Cameron Laird Jul 12, 2002 01:35 pm
Cameron Laird Jul 12, 2002 01:27 pm
Alex Martelli Jul 12, 2002 08:37 am
Doru-Catalin Togea Jul 12, 2002 09:43 am
Jonathan Hogg Jul 12, 2002 01:44 pm
François Pinard Jul 12, 2002 02:37 pm
Mike C. Fletcher Jul 12, 2002 04:56 pm
Jeremy Bowers Jul 12, 2002 03:00 pm
Tim Rowe Jul 12, 2002 04:37 pm
Messages in this thread