Exporting results in XML and CSV formats

You can export the results of a code review to a data file in XML or CSV format. The export process converts the analysis history into a formatted data file that can be used by other programs, inside or outside Eclipse.

About this task

The actions of exporting data and of generating reports are similar:
  • They both create formatted output from a result history.
  • They both write the formatted output to a file.
The difference is the type of output produced:
  • Exporting data generates result information in XML or CSV files that can be used as input to other programs.
  • Generating reports creates text or graphical output in HTML or PDF format. For more information about generating reports, see Generating and saving reports.

Procedure

  1. In the Software Analyzer Results view, right-click an analysis history.
  2. Click Export.
  3. In the Software Analysis Data Export window, choose an export format from the list.
    XML Analysis Results
    Converts the entire results to an XML document.
    CSV Analysis Results
    Converts the entire results to a CSV document.
    Analysis Summary
    Generates an XML document that contains a high-level summary of the code review processing.
    Executed Rules
    Generates an XML document that contains a list of the rules that were applied and their severities.
    Scanned Resources
    Generates an XML document that contains a list of the source code files that were processed.
  4. In the Output File field, specify an output file.
  5. Click OK. The selected type of data is generated and written to the output file.

What to do next

For information about the schema for a result that is exported to XML format, see XML schema.

For information about the fields for a result that is exported to CSV format, see CSV fields.


Feedback