XML vs comma delimited text files

后端 未结 12 2695
面向向阳花
面向向阳花 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:16

    I like to think of the primary distinction in this case as XML is TREE based, while CSV is TABLE-based.

    That is, you can nest and re-nest and omit and generally make a complex TREE structure in XML, whereas you can only make simple 2D tables in CSV.

提交回复
热议问题