Start session action in XML
- Updated: 2025/01/27
Start session action in XML
The Start session action in the XML package enables you to create a new XML session based on an XML file or specified text.
Settings
- Session name
- Enter the session name or select an existing variable used in the Start XML session action. Use this session name for all corresponding actions.
- Data Source
- Specify the data source for the session. You can select a file or a text.
- File: Select Control Room
file, Desktop file, or
Variable.
- Variable: The Variable
option allows you to select a file variable as the data source. You
can choose a file variable mapped to a Control Room
file, Desktop file, or a file stream.As the Start session action supports file stream capability, you can create a file variable and map it to a file stream using one of the file stream supported actions. The file stream capability enables you to create API Tasks for file handling operations. For more information about actions that support creating a file variable to hold the file stream, see File streaming using file variable.Note: Use file stream for files available in any cloud storage and not for files that are available in Control Room or local desktop.
- Control Room file: The Control Room file option allows you to select a file that is available in the Control Room.
- Desktop file: The Desktop
file option allows you to upload a file from your local
desktop. You can use the Specific path or
Regex option.
Use the Specific path option to enter the file path, select a string variable that contains the file path as its value, or use Browse option to upload it directly.
- Use the Regex option to define a regex using folder path and the file name.
- Variable: The Variable
option allows you to select a file variable as the data source. You
can choose a file variable mapped to a Control Room
file, Desktop file, or a file stream.
- Text: Copy and paste the contents of the XML file as text in this field. You can also select an existing variable that is mapped to the XML file contents.
- File: Select Control Room
file, Desktop file, or
Variable.
- Remove text nodes that contain only white space
- Select the check box to remove the blank text nodes when you parse the XML
document.Note: When you migrate bots from Enterprise 11 to Automation 360 that are using the Start session action, the Remove text nodes that contain only white space check box is selected by default.