Represents an XML attribute.

Hierarchy

Constructors

Properties

emptySequence: Iterable<XAttribute> = ...

Gets an empty collection of attributes.

Accessors

  • Gets the XDocument object for this XObject.

    Returns null | XDocument

  • get isNamespaceDeclaration(): boolean
  • Gets a value indicating if this attribute is a namespace declaration.

    Returns boolean

  • Gets the name of this attribute.

    Returns XName

  • Gets the next attribute of the parent element.

    Returns null | XAttribute

  • Gets the parent XElement of this XObject.

    Returns null | XElement

  • get value(): string
  • set value(value: string): void
  • Gets the value of this attribute.

    Returns string

  • Sets the value of this attribute.

    Parameters

    • value: string

    Returns void

Methods

  • remove(): void
  • Removes this attribute from its parent.

    Returns void

  • toString(): string
  • Gets the XML text representation of an attribute and its value.

    Returns

    The XML text representation of an attribute and its value.

    Returns string

  • validateAttribute(name: XName, value: string): void
  • Parameters

    • name: XName
    • value: string

    Returns void

Generated using TypeDoc