public boolean isXMLSearch(){
  return xml != null && xml.length() > 0;
}

public boolean isXMLSearch ( ) { return xml != null && xml . length ( ) > 0 ; }
determines whether or not this is an xml search .
