Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

878132 Posts in 32907 Topics- by 24328 Members - Latest Member: Pl4n3

May 21, 2013, 08:27:58 AM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)Best uses for XML
Pages: 1 2 [3]
Print
Author Topic: Best uses for XML  (Read 2805 times)
Momeka_
Level 0
***



View Profile WWW Email
« Reply #30 on: July 29, 2011, 06:00:29 AM »

I usually use XML for storing away stats for players, enemies etc. At least when I work with someone else, saves time from having to explain where the variables are in the code.
Logged

darklight
Level 0
**


View Profile WWW
« Reply #31 on: September 08, 2011, 07:34:43 PM »

(replying late to this thread in the hope I'll have the last word  Smiley)

XML is human readable in that a human should be able to look at an XML document & understand it.  In the same way a human cannot look at a binary file and understand it.

If you cant read XML, or you can read a binary file, you are doing it wrong.
Logged

Storm Clouds over the Western Front - forum & dev blog | Twitter: @DarklightXNA | YouTube: 2D Flight Sim
Mikademus
Level 10
*****


The Magical Owl


View Profile
« Reply #32 on: September 09, 2011, 01:05:17 AM »

Aargh, the debate has opened again!

XML is a trap. It is standard and seems an easy enough format. Over time your data files increase in complexity and suddenly you avoid opening your XML files because they're a horror for human eyes to parse and a drain to update manually. You find you need to make tools to update your data files!

Point is: Small data files usually don't need XML, it is overkill. Large data files become unwieldy in XML without tools to edit them. XML is only really useful if you write a tool and need an format to save its data in, not the other way around.

For basic data parsing that should remain human-readable and human-updatable in the long run without tools you should use something like JSON (or YAML) or even stick to INI.
Logged

\\\"There\\\'s a tendency among the press to attribute the creation of a game to a single person,\\\" says Warren Spector, creator of Thief and Deus Ex. --IGN<br />My compilation of game engines for indies
st33d
Guest
« Reply #33 on: September 09, 2011, 01:10:51 AM »

Necro-posting without merit is not allowed on this forum.

Locking thread. Sorry.
Logged
Pages: 1 2 [3]
Print
Jump to:  

Theme orange-lt created by panic