Represents XML namespaces.

Hierarchy

  • XNamespace

Constructors

Properties

Accessors

Methods

Constructors

  • new XNamespace(namespaceName: string): XNamespace
  • Parameters

    • namespaceName: string

    Returns XNamespace

Properties

names: Map<string, XName> = ...
namespaceName: string
_none: XNamespace = ...
_xml: XNamespace = ...
_xmlns: XNamespace = ...
namespaces: Map<string, XNamespace> = ...

Accessors

  • Gets the namespace for the xml prefix.

    Returns XNamespace

  • Gets the namespace for the xmlns prefix.

    Returns XNamespace

Methods

  • getName(localName: string): XName
  • Gets the XName for the given local name, e.g., body, id.

    Parameters

    • localName: string

      The local name, e.g., body.

    Returns XName

  • toString(): string
  • Gets the string representation of this XNamespace.

    Returns

    The string representation of this XNamespace.

    Returns string

Generated using TypeDoc