Interface: SerializeOptions
Defined in: netconf/src/xml/serialize.ts:23
Options for serializeXml().
Properties
declaration?
ts
readonly declaration?: boolean;Defined in: netconf/src/xml/serialize.ts:25
Prepend <?xml version="1.0" encoding="UTF-8"?>. Default false.
indent?
ts
readonly indent?: string | number;Defined in: netconf/src/xml/serialize.ts:35
Pretty-print: put each child element on its own line, indented by this string (or this many spaces) per level. Default: no indentation, no line breaks.
Only element content is reformatted. Whitespace-only text between child elements is dropped; an element holding only text stays on one line with its text unchanged; mixed content (text and elements together) is written as it is, so no character data is ever altered.