createChild

open fun createChild(@NonNull name: String): Xml

Create an empty child node.

The child is inserted at the end of the XML tree.

Creates another child even when a child with the same name already exists.

Return

The created child node.

Parameters

name

The child's name.

Throws


open fun createChild(@NonNull name: String, @Nullable value: String): Xml
open fun createChild(@NonNull name: String, @NonNull value: Boolean): Xml
open fun <T> createChild(@NonNull name: String, @NonNull value: T): Xml

Create a child node with a value.

The child is inserted at the end of the XML tree.

Creates another child even when a child with the same name already exists.

Return

The created child node.

Parameters

name

The child's name.

value

The value of the child.

Throws