Re: XML was RE: [GD-General] RE: A portable preferences library
Brought to you by:
vexxed72
From: Jorrit T. <Jor...@uz...> - 2003-12-16 08:38:40
|
Alen Ladavac wrote: > >Also, what kind of info are you people storing in XML files? I often hear >comments about how XML is so great that we should store everything in it. >Erm... well... I know I'm not an XML expert, but I've never seen an XML file >that was not too bloated. Can any one show me an example XML format for e.g. a >mesh, that would be reasonable in size? Don't get me wrong, a little bloating >is ok for small data, like prefs, if it gives you flexibility, etc., but this >thing with "large data blobs" sounds scary. > >I'll be glad if you can prove me wrong. :) > > > We use XML a lot in Crystal Space (http://crystal.sf.net). It does tend to give very big files but we also found that it doesn't matter. CS supports reading from ZIP files so map files are usually placed in compressed archives. XML compresses very well (due to the high redundancy) so the size disadvantage nearly completely disappears in that case. So you shouldn't really look at the size of the XML file. It doesn't matter in most cases. Greetings, |