getSingleNode

Reads a document from a source that contains only one document.

If the stream contains more than one document an exception is thrown.

Return

The root node of the document or null if no document is available.