code: public String getNodeText(Object inNode)
    {
      String strValue = null;
      
      if (inNode instanceof Node)
      {
        Node theNode = (Node)inNode;
        // Check the type of the node
  
        String nodeName = theNode.getNodeName();
        if(nodeName == null)
          nodeName = "null";
        StringBuffer wholeString = new StringBuffer(nodeName);
        StringBuffer nodeDetailStr = null;
  
        NamedNodeMap nodeMap = theNode.getAttributes();
        if(nodeMap != null)
        {
          for(int i=0;i<nodeMap.getLength();i++)
          {
            Node attrNode = nodeMap.item(i);
            if(nodeDetailStr == null)
              nodeDetailStr = new StringBuffer("");
            nodeDetailStr.append(" ");
            nodeDetailStr.append(attrNode.getNodeName());
            nodeDetailStr.append(":");
            nodeDetailStr.append(attrNode.getNodeValue());
            if(i < nodeMap.getLength()-1)
              nodeDetailStr.append(", ");
          }
        }
  
        if(nodeDetailStr == null)
        {
          // Note this gets the text associated with the first child element only.
          Node firstChild = theNode.getFirstChild();
          if(firstChild != null)
          {
            String firstChildStr = firstChild.getNodeValue();
            if(firstChildStr != null)
              nodeDetailStr = new StringBuffer(firstChildStr);
          }
        }
        
        if(nodeDetailStr == null)
        {
          wholeString.append("(null)");
        }
        else
        {
          wholeString.append("(");
          wholeString.append(nodeDetailStr);
          wholeString.append(")");
        }
          strValue = wholeString.toString(); 
      }  // eof is inNode instanceof Node
      
      return strValue;
    }
docs: /* (non-Javadoc)
  @see com.ibm.ws.sib.matchspace.selector.impl.EvaluatorImpl#getNodeText(java.lang.Object)