XML命名空间中的前缀

时间:2012-04-25 09:49:28

标签: xml namespaces xsd xml-parsing

是否可以在XML命名空间中使用冒号?

像这样的东西

<root xmlns:x:y="...." />

1 个答案:

答案 0 :(得分:0)

结果可能因您的XMl处理器而异。

来自NT-Names定义:

The Namespaces in XML Recommendation [XML Names] assigns a meaning to names 
containing colon characters.
Therefore, authors should not use the colon in XML names except for 
namespace purposes, but XML processors must accept the colon as a name character.