xmlHashTree function

Constructors for trees stored as flat list of nodes with information about parents and children.