public virtual void RemoveNamespace( string prefix, string uri ) {
if ( uri == null ) {
throw new ArgumentNullException( "uri" );
}
if ( prefix == null ) {
throw new ArgumentNullException( "prefix" );
}
int declIndex = LookupNamespaceDecl( prefix );
while ( declIndex != -1 ) {
if ( String.Equals( nsdecls[declIndex].uri, uri ) && nsdecls[declIndex].scopeId == scopeId ) {
nsdecls[declIndex].uri = null;
}
declIndex = nsdecls[declIndex].previousNsIndex;
}
}