@federicocarboni/saxe
    Preparing search index...

    Interface QName

    A qualified name for elements or attributes.

    Qualified names associate a namespace URI with a local name. To make the association it defines a prefix which corresponds to the namespace URI. So a qualified name consists of the namespace URI, the prefix and the local name.

    Prefixes are defined by documents and are not intended for identification purposes.

    interface QName {
        localName: string;
        name: string;
        namespace?: string;
        prefix?: string;
        matches(localName: string, namespace?: string): boolean;
    }
    Index

    Properties

    localName: string

    Local part of the qualified name. Together with namespace it univocally identifies the name.

    name: string

    Qualified name, including the namespace prefix if present. Unlike the HTML DOM it is case sensitive and not uppercased.

    In namespace-aware processing always prefer matching by namespace URI and local name instead.

    namespace?: string

    Namespace URI. If there is none it is undefined.

    prefix?: string

    Prefix part of the name, if there is none it is undefined.

    In namespace-aware processing always prefer matching on namespace instead.

    Methods

    • Identifies the qualified name by local name and namespace URI.

      Parameters

      • localName: string

        Local name to match for.

      • Optionalnamespace: string

        Namespace URI to match for. When not defined, matches for qualified names without a namespace.

      Returns boolean

      • Returns true if it matches the specified local name and namespace URI, false otherwise.