【问题标题】:Prefix in XML namespaceXML 命名空间中的前缀
【发布时间】:2012-04-25 09:49:27
【问题描述】:

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

类似的东西

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

【问题讨论】:

    标签: xml namespaces xsd xml-parsing


    【解决方案1】:

    结果可能因您的 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.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-09-29
      • 1970-01-01
      • 1970-01-01
      • 2022-08-10
      • 2011-01-21
      • 2012-05-27
      相关资源
      最近更新 更多