What is an xs:NCName type and when should it be used?

后端 未结 4 1850
萌比男神i
萌比男神i 2020-12-02 16:32

I ran one of my xml files through a schema generator and everything generated was what was expected, with the exception of one node:



        
4条回答
  •  臣服心动
    2020-12-02 16:51

    NCName is non-colonized name e.g. "name". Compared to QName which is qualified name e.g. "ns:name". If your names are not supposed to be qualified by different namespaces, then they are NCNames.

    xs:string puts no restrictions on your names at all, but xs:NCName basically disallows ":" to appear in the string.

提交回复
热议问题