code: protected String getStringFromNode(Object inNode)
    {
      if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
        tc.entry(cclass, "getStringFromNode", inNode);
      
      String strValue = null;
      if (inNode instanceof Node)
      {
        Node theNode = (Node)inNode;
        // Check the type of the node
        int nodeType = theNode.getNodeType();
        if(nodeType == Node.ATTRIBUTE_NODE)
        {
          strValue = theNode.getNodeValue();
        }
  //TODO: More special casing needed here dependent on node type? text etc?        
        else
        {
          // Note this gets the text associated with the first child element only.
          Node firstChild = theNode.getFirstChild();
          if(firstChild != null)
            strValue = firstChild.getNodeValue();
        }
      }  // eof is inNode instanceof Node
      
      if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
        tc.exit(cclass, "getStringFromNode", strValue);    
      return strValue;
    }
docs: /* (non-Javadoc)
  @see com.ibm.ws.sib.matchspace.selector.impl.EvaluatorImpl#getStringFromNode(java.lang.Object)