code: static public String getTextValue(Node node) {
          if( node.getChildNodes().getLength() == 0 ) {
              return null;
          }
          return node.getFirstChild().getNodeValue();
      }
docs: Returns the text from the given node.
  
  @param node the node to extract the value from
  @return the text from the node