if I compare 2 data files containing the same data, but one of them the data is in XML format, the other one is JSON, and then both files are zipped (pkzip). How would they compare regarding the file size? My guess is that they probably have the same size, because zipping would take the more verbose element names of XML.
Just curious, thanks for your thoughts.
If you’re representing mixed content then XML will probably be smaller, because JSON handles mixed content so inefficiently. But then, if you’re interested in JSON then you’re probably not interested in mixed content. In fact that’s why for simple data XML is likely to be larger: the information content of a given message is higher (uses more bits) if it’s expressed in a language where there’s a larger permitted set of possible messages.