Represents the full information about a particular XML name (that is Namespace URI, Prefix and Local Name) in the form of a single object.

(For more details about XML names, see also "About XML Names" reference below.)

The string representation of a QName object is the XML qualified name that looks like

prefix:localName
when the prefix is not empty, and
localName
when the prefix is empty.

For example, let's suppose qName is a QName object and

qName.prefix    == "xs"
qName.localName == "complexType"
then
qName.toString() returns "xs:complexType"

QName objects are comparable (and, therefore, can be used as sorting keys). The comparison is done first by namespace URIs and then, if namespaces are equal, by local names:

  1. QName.namespaceURI
  2. QName.localName

${include ../../refs/xml_names.htm}