XMLSerializer.parseDocument(): changed to return the first node.