Thats exactly what
you should get. See the JavaDocs documentation for org.w3c.dom.Node - there is a nice table that shows the nodeName and nodeValue for all the different types of node. For a Document, the node Name is #document and the nodeValue is null.
You should now be able to do:
Element root = document.getDocumentElement();
to get the root element of the document.
Bill