CompareFile

The CompareFile ISCommand is used to compare two files used and created by ArcGIS Image Server. For example, it can compare XML files and specific nodes in xml files. Additionally, the XPaths and the files can be overridden.

The default command line is:

ISCommand CompareFile --File1=<PathToFile1> --File2=<PathToFile2> --XPath1=<XPath1> --XPath2=<XPath2>

The table below defines the variables that are required to use this script. Most variables are defined within the script. You can either make an edit to the script or enter the variable at the command line as shown below.

Variable

Description/Options

Default

Required

File1

Path and name of a file.

D:\Dev\ESRI\Source\CommonComponents\Data\UserName\test.ISPConfig

Yes

File2

Path and name of the file to be compared.

D:\Dev\ESRI\Source\CommonComponents\Data\UserName\test1.ISPConfig

Yes

XPath1

Path of the node in an XML file.

None

No

XPath2

Path to the node to be compared in an XML file.

None

No

Example:

ISCommand CompareFile --File1=D:\Dev\ESRI\Source\CommonComponents\Data\UserName\test.ISPConfig --File2=D:\Dev\ESRI\Source\CommonComponents\Data\UserName\test1.ISPConfig