xml - 众所周知的命名空间前缀

标签 xml namespaces

宏博士 says :

In practice its rare that namespace prefixes clash because most namespaces are well known and defined with a conventional prefix that is likely to be unique among the set of namespaces likely to be combined (again, the more general case of willy-nilly combination of unexpected stuff just doesn't much happen).



不过,我想选择一个不常用的命名空间前缀。我想我可以用谷歌搜索我想要的前缀,但是有没有人知道一个传统前缀的列表,理想情况下有一些衡量它们有多常见/晦涩的方法?

最佳答案

命名空间的重要之处在于前缀是任意的,并且可以轻松更改。标准化的不是前缀,而是命名空间url,它们不会冲突,因为它们使用域注册系统来防止冲突。

关于xml - 众所周知的命名空间前缀,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11370960/

相关文章:

php - 在 Laravel 5 项目中使用枚举类

c - 在 C 中使用 xmlReadFile 时出现警告/错误

java - 通过 Java 读取 XML、替换文本和写入同一个 XML 文件

javascript - nodejs elementtree npm xml解析与合并

c# - 命名空间在 C# 中是必不可少的吗?

c# - 如何将非命名空间类型导入 IronPython?

php - 是否有用于此的 PHP namespace 快捷方式?

java - 以编程方式在垂直 LinearLayout 内添加约束布局?

javascript - 从 xml 文件创建 html5 播放列表

c# - WPF C# - MainWindows.g.cs 中的 "Unable to find namespace"错误