Options
All
  • Public
  • Public/Protected
  • All
Menu

Class XmlProcInst<Parent>

Represents a processing instruction.

A processing instruction is structured as follows, where {target} and {content} are the target and content of the processing instruction respectively:

<?{target} {content}?>

Type parameters

  • Parent

Hierarchy

  • XmlProcInst

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private _content

_content: string | undefined

Private _parent

_parent: Parent

Private _target

_target: string

Private _validation

_validation: boolean

Accessors

content

  • get content(): undefined | string
  • set content(content: string | undefined): void
  • Gets the content of this processing instruction.

    Returns undefined | string

  • Sets the content of this processing instruction.

    Parameters

    • content: string | undefined

    Returns void

target

  • get target(): string
  • set target(target: string): void
  • Gets the target of this processing instruction.

    Returns string

  • Sets the content of this processing instruction.

    Parameters

    • target: string

    Returns void

Methods

toString

  • toString(): string
  • Returns an XML string representation of this processing instruction.

    Returns string

up

  • up(): Parent
  • Returns the parent of this processing instruction.

    Returns Parent

Generated using TypeDoc