setChildValue

open fun setChildValue(@NonNull name: String, @Nullable value: String)

Set a child's value.

The first child with such name is used. If no such child exists, a new child is created.

Compared to replaceChild, this will retain all attributes and children of that child.

Parameters

name

The child's name.

value

The child's value.

Throws