After building the document by writing a sequence of events, retrieve the root node
of the constructed document tree
the root node of the constructed tree. The result is undefined (maybe null, maybe an exception)
if the method is called before successfully completing the sequence of events (of which the last should be
ContentHandler.endDocument()) that constructs the tree.