QName
A QName, or qualified name, is the fully qualified name of an element, attribute, or identifier in an XML document.[src] A QName concisely associates the URI of an XML namespace with the local name of an element, attribute, or identifier in that namespace.[src] To make this association, the QName assigns the local name a prefix that corresponds to its namespace.[src] In all, the QName comprises the URI of the XML namespace, the prefix, and the local name.[src] The World Wide Web Consortium introduced the QName convention in the 1999 specification "Namespaces in XML".[src]
A QName, or qualified name, is the fully qualified name of an element, attribute, or identifier in an XML document.[src] A QName concisely associates the URI of an XML namespace with the local name of an element, attribute, or identifier in that namespace.[src] To make this association, the QName assigns the local name a prefix that corresponds to its namespace.[src] In all, the QName comprises the URI of the XML namespace, the prefix, and the local name.[src] The World Wide Web Consortium introduced the QName convention in the 1999 specification "Namespaces in XML".[src] QName ::= PrefixedName | UnprefixedName PrefixedName ::= Prefix ':' LocalPart UnprefixedName ::= LocalPart Prefix ::= NCName LocalPart ::= NCName NCName is defined as follows: NCName ::= Name - (Char* ':' Char*) (* An XML Name, minus the ":" *) Name ::= NameStartChar (NameChar)* NameStartChar ::= ":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF] NameChar ::= NameStartChar | "-" | "." | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040] Char ::= (* any Unicode char, excluding surrogate blocks FFFE and FFFF.[src] *) #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] Whereby the Prefix is used as placeholder for the namespace and the LocalPart as the local part of the qualified name.[src] A local part can be an attribute name or an element name.[src] In line two the prefix "x" is declared to be associated with the URI "http://example.com/ns/foo" .[src] This prefix can further on be used as abbreviation for this namespace.[src] Subsequently, the tag "x:p" is a valid QName because it uses the "x" as namespace reference and "p" as local part.[src] The tag "doc" is also a valid QName, but it consists only of a local part.[src]
17 sentences · 17 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"QName." encyclopegia.org, 2023, https://encyclopegia.org/wiki/qname. Accessed 25 November 2026.
Chicago
"QName." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/qname.
APA
encyclopegia.org. (2023). QName. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/qname
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON