Unmuddle document node and root node