StringifyOptions

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

interface

interface StringifyOptions

Options for stringify.

reference

StringifyOptions

Properties

indent

readonly indent?: string

Indentation string for pretty-printing (e.g., " " or "\t"). When undefined, output is compact with no extra whitespace.

Default: undefined

declaration

readonly declaration?: boolean

If true, include the XML declaration when stringifying a document. Only applies when the input is an XmlDocument with a declaration.

Default: true

Source