XmlDeclaration

import { XmlDeclaration } from "jsr:@ende/xml";

interface

interface XmlDeclaration extends XmlPosition

The XML declaration of a document, exposed as XmlDocument.declaration.

See also

Properties

type

readonly type: "declaration"

The type discriminant.

version

readonly version: string

The XML version as declared in the document (e.g. "1.0" or "1.1").

encoding

readonly encoding?: string

The declared character encoding, if specified.

standalone

readonly standalone?: "yes" | "no"

Whether the document is standalone (§2.9).

Source