The class representing an XML attribute node.

Hierarchy (View Summary)

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