Saving scan results in an XML format