has_child()

Allows the client to query the node for existence of a child node based on the node name.

Input

Requires on parameter: name of child node to check for.

Output

Returns Boolean value indicating whether child with specified name exists.

Example

>>>a=as_node('services/time/local')
>>>a.has_child('second')
True