selfClosingTag

fun selfClosingTag(name: String, attributes: LinkedHashMap<String, String> = linkedMapOf())(source)

Creates a self-closing XML tag with the given name and attributes.

Parameters

name

The tag name

attributes

The tag attributes as key-value pairs