Thread: object -> XML
View Single Post
  #11  
Old 06-03-2007, 02:49 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Quote:
Originally Posted by Inverness View Post
That seems like an awfully large format to use. When you have to write down the name of the variable twice and use index for each member of an array.
but try to store objects recursivley in a format such as INI and you'll have problems.

Of course It is possible using a custom format but XML offers the ability of easily transporting the data and put it somewhere else like a website because there are plenty of parsers available.


As for "index", it could be replaced with CSV so it's just

array = {"a","b","c","d");

is represented as a,b,c,d

but that wouldn't account for objects stored in arrays or multi dimensional arrays.
__________________

Coming soon (Hopefully:P)
Reply With Quote