RFC: Attributes and XML-RPC

David Megginson david at megginson.com
Wed Sep 22 19:36:50 BST 1999


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 at megginson.com
           http://www.megginson.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at 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 at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list