I've been won over by this article:
http://www.gamedev.net/reference/art...rticle1928.asp
He presents a couple of good use cases. I definately going to make use of it, just wondering if anyone else has and has anything to say (pros / cons etc).
Printable View
I've been won over by this article:
http://www.gamedev.net/reference/art...rticle1928.asp
He presents a couple of good use cases. I definately going to make use of it, just wondering if anyone else has and has anything to say (pros / cons etc).
I'm currently using xml to handle data in my engine, but it's up in the python layer. I changed to it from flat name = value text files because as my game logic became more complicated it became necessary to have the ability to have multiple definitions of the same type in a file.
I think XML is appropriate only in web (because it's syntax almost is like HTML). You can use all the other types of databases in programming, why XML?
This is one of my thoughts, which are unacceptable to people who are just used to do things like the other people do.
Edit: You'll probably answer it's good to hold multi-layered data, which is true...
Civ 4 uses lots of XML. I have no idea what for, though.
>I think XML is appropriate only in web (because it's syntax almost is like HTML)
Huh? Just because it looks like HTML doesn't mean it's just for the web. Markup languages are for representing data, they can be used in (and are used in) many different domains.
Property sheets and other data are all handled by XML in MSVS 2005, AFAIK.