Added getNode function to get the content of a node