public static void handleWarning ( final Node node , final String msg ) { final ErrorHandler handler = ( ErrorHandler ) node . getOwnerDocument ( ) . getUserData ( ERROR_HANDLER_KEY ) ; if ( handler == null ) { throw new IllegalStateException ( "WARNING: " + formatLocationInfo ( node ) + msg ) ; } else { handler . warning ( formatLocationInfo ( node ) + msg ) ; } }
Handle a warning condition as a consequence of parsing .