Action File

The action Template file is an XML file specified by T parameter in command line. Using an action template file would allow you to define all information in a single file.

Optionally, it allows you to put multiple actions in one file, specified using XML format. The format of the action file is:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE actions SYSTEM "siftactions.dtd">
<actions>
<action name="action1" output=”action2:file1”>
<arg name="arg1" value="somevalue" sc="a1"/>
……
</action>
……
</actions>

The <action> element defines an action. The <arg> element defines a parameter needed for this action. If there are multiple <action> elements in the file, the program executes them one by one.

The ‘name’ attribute for <action> element specifies the action name. This must be a valid action. The XML file names are all valid actions.

The ‘name’ attribute for <arg> element specifies the parameter name for an action. The name is case sensitive and should not be edited. The ‘sc’ attribute for <arg> element specifies a shortcut name for the ‘name’ attribute, and it is case insensitive. You can use shortcut names to specify values in command line to replace default values specified in this file. If the action is specified by A parameter in command line, you must specify parameter name for that action rather than a shortcut name. Shortcut names can be found in each XML file.