getChildValue

Get a child's value.

The first child with such name is used.

Observe: Because this method can return null, the following code is incorrect and can throw NullPointerException:

if (tree.getChildValue(CHILD).equals(VALUE))
{
    …
}
The correct way is to compare it the other way around:
if (VALUE.equals(tree.getChildValue(CHILD))
{
    …
}

Return

The child's value or null if the child does not exist.

Parameters

name

The child's name