Interface StringifyOptions

interface StringifyOptions {
    includeXmlDeclaration: boolean;
    indent: string;
    newline: string;
    prefixMap: ReadonlyMap<string, string>;
}

Properties

includeXmlDeclaration: boolean

If true, will include the XML declaration at the beginning of the stringified document. <?xml version="1.0"?>

indent: string

The indentation. Default: 4 spaces

newline: string

The character(s) between lines. Default: \n

prefixMap: ReadonlyMap<string, string>

A map of namespace uri to prefix strings. If a namespace is not found, a prefix will be generated.