Package: cxml-stp

Function root

Lambda List

root (node)

Arguments

  • node -- an instance of node

Return Value

a node or nil

Details

Returns the root of the tree of nodes node is part of.

In a complete document, this is an instance of document, but a detached subtree can have any node as its root. In particular, the argument itself is returned if it does not have a parent.
 

See also