XML vs comma delimited text files

后端 未结 12 2469
面向向阳花
面向向阳花 2021-02-20 08:25

Ok, I\'ve read a couple books on XML and wrote programs to spit it out and what not. But here\'s the question. Both a comma delimited file and a XML file are \"human readable.

12条回答
  •  醉话见心
    2021-02-20 09:01

    XML supports complex, structured and hierarchical representation of things. That's far from what CSV can store trivially.

    Think about a complex object graph in an object oriented environment. It can be serialized as an XML document pretty easily but CSV cannot handle such a thing.

提交回复
热议问题