When is it OK to use an XML file to save information?

后端 未结 5 972
忘了有多久
忘了有多久 2020-12-20 18:31

What reason could there be for using an XML to save information?

5条回答
  •  忘掉有多难
    2020-12-20 18:55

    It's a portable, parsable standard.

    So if you have data that needs to be read by several different programs (and possibly people) you could use XML.

    It is also relatively easy to validate and transform (via XSLT) into other formats.

    Obviously you could use other formats, but that doesn't stop you using XML.

提交回复
热议问题