Schema Central > XML Schema 1.0 > xsd:QName
Advanced search
Need XML Help?

Recommended Reading:

Definitive XML Schema

 

Web Service Contract Design and Versioning for SOA

 

Advanced XML Applications

 

xsd:QName

The type xsd:QName represents an XML namespace-qualified name. A xsd:QName value consists of a prefix and a local part, separated by a colon, both of which are NCName values. The prefix and colon are optional, but if they are not present, it is assumed that either the name is namespace-qualified by other means (e.g., by a default namespace declaration), or the name is not in a namespace.

Simple Type Information

Namespace: http://www.w3.org/2001/XMLSchema

Schema Document: datatypes.xsd

Content

Examples

Valid valuesComment
pre:myElementvalid assuming the prefix "pre" is mapped to a namespace in scope
myElementprefix and colon are optional
Invalid valuesComment
:myElementa QName must not start with a colon
pre:3rdElementthe local part must not start with a number; it must be a valid NCName
an empty value is not valid, unless xsi:nil is used

Type Inheritance Chain

Site developed and hosted by Datypic, Inc.

Please report errors or comments about this site to contrib@functx.com