Thread: Anyone using XML?

  1. #1
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709

    Anyone using XML?

    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).
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  2. #2
    GA ichijoji's Avatar
    Join Date
    Nov 2002
    Posts
    179
    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.
    Illusion and reality become impartiality and confidence.

  3. #3
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    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...
    Last edited by maxorator; 11-14-2006 at 12:00 PM.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Civ 4 uses lots of XML. I have no idea what for, though.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #5
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    >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.

  6. #6
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071
    Property sheets and other data are all handled by XML in MSVS 2005, AFAIK.
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Parsing Xml
    By deviousdexter in forum C# Programming
    Replies: 7
    Last Post: 04-24-2009, 06:29 AM
  2. Dissecting an Excel XML spreadsheet
    By desmond5 in forum C++ Programming
    Replies: 1
    Last Post: 05-22-2008, 04:32 PM
  3. XML encoding issue
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 05-16-2008, 05:21 AM
  4. XML and data exchange
    By seexml in forum C Programming
    Replies: 0
    Last Post: 04-27-2006, 03:02 PM
  5. Need help with this xml tree example
    By kzar in forum C Programming
    Replies: 1
    Last Post: 11-22-2004, 11:23 AM