An XML name for an element or attribute.

interface QName {
    localPart: string;
    namespaceUri: null | string;
    prefix: null | string;
    qName: string;
}

Properties

localPart: string

The local part of this name.

namespaceUri: null | string

The resolved xmlns uri for the associated prefix.

prefix: null | string

The xmlns prefix.

qName: string

The fully qualified name. This will be the prefixed name or the unprefixed name if the prefix is empty. The prefixed name will be prefix ':' localPart