开发者

What is the functionality of namespaces in xml documents? [duplicate]

开发者 https://www.devze.com 2023-01-16 14:02 出处:网络
This question already has answers here: Closed 12 开发者_高级运维years ago. Possible Duplicate: What are XML namespaces for?
This question already has answers here: Closed 12 开发者_高级运维years ago.

Possible Duplicate:

What are XML namespaces for?

xmlns attribute of the xml element!


Just like the .NET namespaces, it is designed to allow you to clearly identify objects and avoid name conflicts.

E.g. you can have a Person in the http://mycompany.com/schemas/Internal XML namespace, and also another type Person in http://mycompany.com/schemas/ERP - and those two will not conflict on their name.

See this great article here The XML Files - Understanding XML Namespaces which explains it in much greater detail and much better than I do.

0

精彩评论

暂无评论...
验证码 换一张
取 消