formatXml

fun formatXml(xml: String, indentSpaces: Int = DEFAULT_INDENT_SPACES): String

Format XML string.

Parameters

xml

Input XML string.

indentSpaces

The number of spaces to indent for each level of nesting. Default 4