libxml2-wasm
    Preparing search index...

    Interface XmlNamedNode

    The interface for the XML nodes that have names and namespaces.

    interface XmlNamedNode {
        namespaceForPrefix: (prefix: string) => string | null;
        get name(): string;
        get namespacePrefix(): string;
        set namespacePrefix(prefix: string): void;
        get namespaces(): NamespaceMap;
        get namespaceUri(): string;
        get prefix(): string;
        set prefix(prefix: string): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    namespaceForPrefix: (prefix: string) => string | null

    Find out corresponding namespace URI for a prefix

    Accessors

    • get namespaceUri(): string

      The URI of the namespace applied to this node.

      Returns string

    • get prefix(): string

      The prefix representing the namespace applied to this node.

      Returns string

    • set prefix(prefix: string): void

      Set the namespace prefix of this node.

      Parameters

      • prefix: string

        The new prefix to set. Use empty string to remove the prefix.

      Returns void