0

是否可以在带有冒号的 XML 命名空间中使用前缀?

像这样的东西

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

1 回答 1

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.
于 2012-04-25T10:03:35.453 回答