public static String BooleanToString(Boolean bool){
  if (bool == null) {
    return "";
  }
  return bool.booleanValue() ? "1" : "0";
}

public static String BooleanToString ( Boolean bool ) { if ( bool == null ) { return "" ; } return bool . booleanValue ( ) ? "1" : "0" ; }
converts a boolean object to a string representing xml boolean .
