Get the root of a YAML document node.
The root object is the first object added to the document.
The pointer returned by this function is valid until any of the functions modifying the documents are called.
An empty document produced by the parser signifies the end of a YAML stream.
| document |
A document object. |
|
the node object or |