public static boolean has ( Xml root , String formula ) { Check . notNull ( root ) ; Check . notNull ( formula ) ; for ( final Xml node : root . getChildren ( NODE_FORMULA ) ) { if ( node . readString ( ATT_NAME ) . equals ( formula ) ) { return true ; } } return false ; }
Check if node has formula node .