Skip to main content

Timeline for 'Binary XML' for game data?

Current License: CC BY-SA 2.5

6 events
when toggle format what by license comment
Jan 27, 2013 at 7:35 review Suggested edits
Jan 28, 2013 at 1:29
Jan 5, 2011 at 15:46 comment added doppelgreener @Joe: bluescrn seems to be searching for a readable format that doesn't have duplicated names. I was illustrating JSON's capability to offer just that. I totally agree though that at a certain point you might as well just wonder why you're even bothering with markup like this.
Jan 5, 2011 at 15:23 comment added user744 @Axidos: If you're going to make the markup that unreadable and unstructured, you might as well just make it binary. Aside from that, it's a false savings, unless you're parsing uncompressed data during runtime (in which case, you're probably screwed anyway), or somehow constrained for a few hundred bytes of string memory during parsing (unless you're on a microwave, you're not).
Jan 4, 2011 at 5:03 comment added doppelgreener @bluescrn: No, it doesn't have that issue. Objects are one structure; you could also use arrays [which,just,look,like,this]. That means you can end up with something like this for storing the names and properties of cars: "cars":{"ford":[8C,FA,BC,2A,384FFFFF],"holden":[00,00,04,FF,04FF54A9]} You can even omit the "cars" identifier and just go straight into an array if you know where the cars field will be. You can even omit the "ford" and "holden" names if you don't need to save that data, leaving you with: [...,[[8C,FA,BC,2A,384FFFFF],[00,00,04,FF,04FF54A9]]]. Does it get more compact?
Jan 3, 2011 at 10:36 comment added bluescrn It looks slightly more compact than XML, but still has the main issue of duplicated attribute names. If the file contained a list of game objects with 'XPosition', 'YPosition', and 'Scale' attributes, the strings 'XPosition'/'YPosition'/'Scale' would be duplicated for every single game object. This is the main thing that I'm aiming to 'compress' at the moment
Jan 3, 2011 at 7:39 history answered Sven CC BY-SA 2.5