Documentation / @sw-file-lib/xml / XmlWriterOptions
Interface: XmlWriterOptions
ts
interface XmlWriterOptions {
readonly indent?: string | number;
readonly xmlDeclaration?: boolean;
}Defined in: packages/xml/src/writer/index.ts:16
Options for configuring the behavior of an XmlWriter instance.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
|
| The string or number of spaces to use for indentation in the generated XML output. If a string is provided, it will be used as the indentation for each level of nesting. If a number is provided, that many spaces will be used for each level of nesting. If Default
| |
|
| Whether to include the XML declaration ( Default
|