Why are URLs in XML namespaces?

前端 未结 4 1690
轮回少年
轮回少年 2020-11-28 14:02

Take this line as just one example:



4条回答
  •  生来不讨喜
    2020-11-28 14:36

    W3 explanation Here

    Just like namespaces in .NET, namespaces in XML documents are designed to help prevent and resolve name collisions, especially if XML documents are from different organizations and/or domains of knowledge.

    XML document format has been stylized by the same people responsible for HTML, so you may find syntactical similarities in elements of the format. Semantically, the dotNET and XML namespaces serve the same goal.

提交回复
热议问题