Represents XML names.

Hierarchy

  • XName

Constructors

Properties

Accessors

Methods

Constructors

  • Initializes a new XName with the given namespace, local name, and prefix.

    Parameters

    • namespace: XNamespace

      The XNamespace.

    • localName: string

      The local name.

    Returns XName

Properties

localName: string
namespace: XNamespace

Accessors

  • get namespaceName(): string
  • Gets the namespace name.

    Returns string

Methods

  • toString(): string
  • Gets the string representation of this XName, i.e., either:

    • localName, if the namespace name is the empty string, or
    • {namespaceName}localName, if the namespace name is not empty.

    Returns

    The string representation.

    Returns string

  • get(expandedName: string): XName
  • get(localName: string, namespaceName: string): XName
  • Gets the XName having the given expanded name.

    Returns

    A new or existing XName instance.

    Parameters

    • expandedName: string

      The expanded name.

    Returns XName

  • Gets the XName having the given local and namespace name.

    Parameters

    • localName: string
    • namespaceName: string

    Returns XName

Generated using TypeDoc