[
Lists Home |
Date Index |
Thread Index
]
- From: David Megginson <david@megginson.com>
- To: <xml-dev@ic.ac.uk>
- Date: Wed, 22 Sep 1999 13:39:27 -0400 (EDT)
Mark Nutter writes:
> At 12:16 PM 09/22/99 -0400, Hunter, David wrote:
> >So even if you
> >compress the files, the attribute version will be able to compress to 50%
> >smaller than the other file. Again, 2KB isn't a lot, but if we're talking
> >megabytes in size, 50% is a lot.
>
> I wrote a quick perl script to take /usr/dict/words and turn it into an XML
> file, with some artificially generated "attributes". In the resulting file
> named attrib.xml, each <word> tag contains the additional information as
> attributes. I did the same thing to produce a file called child.xml,
> except that the additional information is presented as a child element
> instead of as an attribute. Here are the results:
Those are more-or-less the results that I would expect -- XML tags
have good compression characteristics, since there are so many
longish repeated strings (though I am surprised that the attribute
version is so much larger).
All the best,
David
--
David Megginson david@megginson.com
http://www.megginson.com/
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
|