public Node selectSingleNode(Node contextNode,String str,Node namespaceNode) throws TransformerException {
  NodeIterator nl=selectNodeIterator(contextNode,str,namespaceNode);
  return nl.nextNode();
}

public Node selectSingleNode ( Node contextNode , String str , Node namespaceNode ) throws TransformerException { NodeIterator nl = selectNodeIterator ( contextNode , str , namespaceNode ) ; return nl . nextNode ( ) ; }
use an xpath string to select a single node . xpath namespace prefixes are resolved from the namespacenode .
