xml

inline fun StringBuilder.xml(indented: Boolean = true, init: XmlContentBuilder.() -> Unit)(source)

Extension function to add XML content to a StringBuilder.

Parameters

init

The XML content builder


inline fun TextContentBuilder.xml(indented: Boolean = true, init: XmlContentBuilder.() -> Unit)(source)

Extension function to add XML content to a TextContentBuilder.

Parameters

init

The XML content builder


fun xml(indented: Boolean = true, init: XmlContentBuilder.() -> Unit): String(source)

Creates an XML document with the given content.

Return

The XML document as a string

Parameters

init

The content builder