getNodeValue function

Get the value of the node as a string