Values for namespace in xmlns attribute

前端 未结 2 980
北恋
北恋 2021-01-22 08:29

I see the below document using 2 namespaces

**



  
    Apple         


        
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-22 08:54

    The namespace URI is not used by the parser to look up information.

    I think it should be sufficient for the URIs for the h and f namespaces you mentioned to simply be unique, valid URIs. In most examples, I've seen http used as the scheme name.

    So, a perfectly valid namespace (that does not map to a valid website) could be:

    xmlns:foo="http://my.example.ns"
    

提交回复
热议问题