Added support for xml output in scan command