tag

fun tag(name: String, attributes: LinkedHashMap<String, String> = linkedMapOf(), block: XmlContentBuilder.() -> Unit = {})(source)

Creates an XML tag with the given name, attributes, and content.

Parameters

name

The tag name

attributes

The tag attributes as key-value pairs

block

The content builder