libxml2-wasm
    Preparing search index...

    Class XmlAttribute

    The class representing an XML attribute node.

    Hierarchy (View Summary)

    Index

    Properties

    canonicalize: (
        handler: XmlOutputBufferHandler,
        options?: SubtreeC14NOptions,
    ) => void

    Canonicalize this node and its subtree to a buffer and invoke the handler to process.

    Type Declaration

    canonicalizeToString: (options?: SubtreeC14NOptions) => string

    Canonicalize this node and its subtree and return the result as a string.

    Type Declaration

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

    Find out corresponding namespace URI for a prefix

    Accessors

    • get content(): string

      Alias of value.

      Returns string

    • set content(value: string): void

      The content string of the node.

      Parameters

      • value: string

      Returns void

    • get line(): number

      The line number of the node if the node is parsed from an XML document.

      Returns number

    • get name(): string

      The name of this node.

      Returns string

    • get namespacePrefix(): string

      Alias of prefix

      Returns string

    • set namespacePrefix(prefix: string): void

      Parameters

      • prefix: string

      Returns void

    • 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

    • get value(): string

      The value of this attribute.

      Returns string

    • set value(value: string): void

      Set the value of this attribute.

      Parameters

      • value: string

      Returns void

    Methods