Getting nodes

Syntax:

Node.get(*children)

There are two ways to retrieve a child Node:

root_node.get('child')
root_node.child

You can also retrieve deeper nodes like so:

root_node.a.b.c
root_node.get('a').b.get('c')

Notice that it doesn't particularly matter whether you use the .get() method or simply access the Node as an attribute.

Remember, getting a node means accessing the child node object - to get the value, see Getting values.


Revision #4
Created 22 February 2023 13:53:58 by jvadair
Updated 24 March 2023 21:58:37 by jvadair