public static String getLocalName ( final String uri , final String prefix ) { String ns = getNSFromPrefix ( prefix ) ; if ( ns != null ) { return uri . replace ( ns , "" ) ; } throw new IllegalArgumentException ( "Undefined prefix (" + prefix + ") in URI: " + uri ) ; }
Returns the local name of a URI by removing the prefix namespace