src/main/java/org/jboss/util/xml/catalog/helpers/Namespaces.java
public static String getLocalName(Element element) {
	String name = element.getTagName();

	if (name.indexOf(':') > 0) {
	    name = name.substring(name.indexOf(':')+1);
	}

	return name;
    }
public static String getLocalName(Element element) {
	String name = element.getTagName();

	if (name.indexOf(':') > 0) {
	    name = name.substring(name.indexOf(':')+1);
	}

	return name;
    }
public static String getLocalName ( Element element ) { String name = element . getTagName ( ) ; if ( name . indexOf ( ' ' ) > 0 ) { name = name . substring ( name . indexOf ( ' ' ) + 1 ) ; } return name ; }
Returns the "localname" part of a QName, which is the whole
name if it has no prefix.

@param element The QName of an element.
@return The local part of a QName.
Returns the localname part of a QName which is the whole name if it has no prefix .