Options
All
  • Public
  • Public/Protected
  • All
Menu

Class XmlDecl<Parent>

Represents a declaration.

A declaration is structured as follows, where {version} is the XML version, {encoding} is the encoding of the document, and {standalone} is either "yes" or "no", depending on whether the document may contain external markup declarations:

<?xml version="{version}" encoding="{encoding}" standalone="{standalone}"?>

Type parameters

  • Parent

Hierarchy

  • XmlDecl

Index

Constructors

constructor

Accessors

encoding

  • get encoding(): undefined | string
  • set encoding(encoding: undefined | string): void
  • Gets the encoding associated with this declaration.

    Returns undefined | string

  • Sets the encoding associated with this declaration.

    Parameters

    • encoding: undefined | string

    Returns void

standalone

  • get standalone(): undefined | string
  • set standalone(standalone: undefined | string): void
  • Gets the value of the standalone attribute associated with this declaration.

    Returns undefined | string

  • Sets the value of the standalone attribute associated with this declaration.

    Parameters

    • standalone: undefined | string

    Returns void

version

  • get version(): string
  • set version(version: string): void
  • Gets the XML version associated with this declaration.

    Returns string

  • Sets the XML version associated with this declaration.

    Parameters

    • version: string

    Returns void

Methods

toString

up

  • up(): Parent

Generated using TypeDoc