writeListIfNotEmpty

inline fun <T> XmlWriter.writeListIfNotEmpty(iterable: Iterable<T>, nsUri: String?, localName: String, prefix: String? = null, body: XmlWriter.(T) -> Unit)(source)

Helper function for writing a list only if it contains any element.