code: public String getNodeValue(int nodeHandle)
          {
                  nodes.readSlot(nodeHandle, gotslot);
                  int nodetype=gotslot[0] & 0xFF;		// ###zaj use mask to get node type
                  String value=null;
  
                  switch (nodetype) {			// ###zaj todo - document nodetypes
                  case ATTRIBUTE_NODE:
                          nodes.readSlot(nodeHandle+1, gotslot);
                  case TEXT_NODE:
                  case COMMENT_NODE:
                  case CDATA_SECTION_NODE:
                          value=m_char.getString(gotslot[2], gotslot[3]);		//###zaj
                          break;
                  case PROCESSING_INSTRUCTION_NODE:
                  case ELEMENT_NODE:
                  case ENTITY_REFERENCE_NODE:
                  default:
                          break;
                  }
                  return value;
          }
docs: Given a node handle, return its node value. This is mostly
  as defined by the DOM, but may ignore some conveniences.
  <p>
  
  @param nodeHandle The node id.
  @return String Value of this node, or null if not
  meaningful for this node type.