Class XNodeAbstract

Represents an XML node.

Hierarchy

Constructors

Accessors

  • Gets the XDocument object for this XObject.

    Returns null | XDocument

  • get nextNode(): null | XNode
  • Gets the next sibling node of this node.

    If this node does not have a parent, or if there is no next node, then this property returns null.

    Returns null | XNode

  • Gets the parent XElement of this XObject.

    Returns null | XElement

  • get previousNode(): null | XNode
  • Gets the previous sibling node of this node.

    If this property does not have a parent, or if there is no previous node, then this property returns null.

    Returns null | XNode

Methods

  • Returns the collection of the ancestor elements for this node.

    Returns

    The ancestor elements of this node.

    Parameters

    • Optional name: null | XName

      The optional name of the ancestor elements to find.

    Returns LinqElements

  • remove(): void
  • Removes this XNode from the underlying XML tree.

    Returns void

  • replaceWith(...content: any[]): void
  • Replaces this node with the specified content.

    Parameters

    • Rest ...content: any[]

      Content that replaces this node.

    Returns void

  • toString(): string
  • Returns a string that represents the current object.

    Returns

    A string that represents the current object.

    Returns string

Generated using TypeDoc