xs:Name

The xs:Name type is used to represent a lexically valid name in XML. However, this type is almost never used in XQuery or XML Schema. The xs:QName type is much more appropriate to fully represent names, whether they are in a namespace or not. For unqualified names or local parts of names, xs:NCName or even xs:string are also appropriate types.

Get XQuery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.