libxml2-wasm
    Preparing search index...

    Interface XmlNamedNode

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

    interface XmlNamedNode {
        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;
        namespaceForPrefix(prefix: string): null | string;
    }

    Hierarchy (View Summary)

    Index

    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

    Methods

    • Find out corresponding namespace URI for a prefix

      Parameters

      • prefix: string

      Returns null | string