code: public XMLString getStringValue(int nodeHandle) {
          // ###zaj - researching
          nodes.readSlot(nodeHandle, gotslot);
          int nodetype=gotslot[0] & 0xFF;
          String value=null;
  
          switch (nodetype) {
          case TEXT_NODE:
          case COMMENT_NODE:
          case CDATA_SECTION_NODE:
                  value= m_char.getString(gotslot[2], gotslot[3]);
                  break;
          case PROCESSING_INSTRUCTION_NODE:
          case ATTRIBUTE_NODE:
          case ELEMENT_NODE:
          case ENTITY_REFERENCE_NODE:
          default:
                  break;
          }
          return m_xsf.newstr( value );
  
          }
docs: Get the string-value of a node as a String object
  (see http://www.w3.org/TR/xpath#data-model
  for the definition of a node's string-value).
  
  @param nodeHandle The node ID.
  
  @return A string object that represents the string-value of the given node.