protected int findNamePoint(String namespaceURI,String name){
  if (nodes == null)   return -1;
  if (name == null)   return -1;
  final int size=nodes.size();
  for (int i=0; i < size; ++i) {
    NodeImpl a=(NodeImpl)nodes.get(i);
    String aNamespaceURI=a.getNamespaceURI();
    String aLocalName=a.getLocalName();
    if (namespaceURI == null) {
      if (aNamespaceURI == null && (name.equals(aLocalName) || (aLocalName == null && name.equals(a.getNodeName()))))       return i;
    }
 else {
      if (namespaceURI.equals(aNamespaceURI) && name.equals(aLocalName))       return i;
    }
  }
  return -1;
}

protected int findNamePoint ( String namespaceURI , String name ) { if ( nodes == null ) return - 1 ; if ( name == null ) return - 1 ; final int size = nodes . size ( ) ; for ( int i = 0 ; i < size ; ++ i ) { NodeImpl a = ( NodeImpl ) nodes . get ( i ) ; String aNamespaceURI = a . getNamespaceURI ( ) ; String aLocalName = a . getLocalName ( ) ; if ( namespaceURI == null ) { if ( aNamespaceURI == null && ( name . equals ( aLocalName ) || ( aLocalName == null && name . equals ( a . getNodeName ( ) ) ) ) ) return i ; } else { if ( namespaceURI . equals ( aNamespaceURI ) && name . equals ( aLocalName ) ) return i ; } } return - 1 ; }
this findnamepoint is for dom level 2 namespaces .
