public void registerPrefixForURI(String prefix,String uri){
  if ((uri != null) && (prefix != null)) {
    if (noNamespaceMappings) {
      nsStack.push();
      noNamespaceMappings=false;
    }
    String activePrefix=nsStack.getPrefix(uri,true);
    if (activePrefix == null || !activePrefix.equals(prefix)) {
      nsStack.add(uri,prefix);
    }
  }
}

public void registerPrefixForURI ( String prefix , String uri ) { if ( ( uri != null ) && ( prefix != null ) ) { if ( noNamespaceMappings ) { nsStack . push ( ) ; noNamespaceMappings = false ; } String activePrefix = nsStack . getPrefix ( uri , true ) ; if ( activePrefix == null || ! activePrefix . equals ( prefix ) ) { nsStack . add ( uri , prefix ) ; } } }
register prefix for the indicated uri
