MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guide de l'utilisateur Page 260

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 986
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 259
9 Comparing XML Files
9-8
Save Comparison Log Files in a Zip File
Temporary XML comparison files accumulate in tempdir/MatlabComparisons/
XMLComparisons/TempDirs/. These temporary files are deleted when you close the
related comparison report.
You can zip the temporary files (such as log files) created during XML comparisons, for
sharing or archiving. While the comparison report is open, enter:
xmlcomp.zipTempFiles('c:\work\myexportfolder')
The destination folder must exist. The output reports the zip file name:
Created the zipfile "c:\work\myexportfolder\20080915T065514w.zip"
To view the log file for the last comparison in the MATLAB Editor, enter:
xmlcomp.showLogFile
Export Results to the Workspace
To export the XML comparison results to the MATLAB base workspace,
1
On the Comparison tab, in the Comparison section, select Save As > Save to
Workspace.
The Input Variable Name dialog box appears.
2
Specify a name for the export object in the dialog and click OK. This action exports
the results of the XML comparison to an xmlcomp.Edits object in the workspace.
The xmlcomp.Edits object contains information about the XML comparison including
file names, filters applied, and hierarchical nodes that differ between the two XML files.
To create an xmlcomp.Edits object at the command line without opening the
Comparison Tool, enter:
Edits = xmlcomp.compare(a.xml,b.xml)
Property of xmlcomp.Edits Description
Filters Array of filter structure arrays. Each
structure has two fields, Name and Value.
Vue de la page 259
1 2 ... 255 256 257 258 259 260 261 262 263 264 265 ... 985 986

Commentaires sur ces manuels

Pas de commentaire