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
- Start the XML session.
- Enter the session name or select an existing variable used in the Start XML session action. Use this session name for all corresponding actions.
- Select one of the following in the Data Source field:
- File
- Select Control Room file, Desktop
file, or Variable
- Control Room file: Pick a file that is available in the Control Room.
- Desktop file: Upload a file from your local desktop using either the Specific path or Regex option.
- Variable: Choose an existing
Variable of File
type.
You can use an XML file as a data source in the Start session action. You can also open a file stream for the XML file and use the file stream as the data source variable.
For example, create a File variable and map it to an XML file that is already available in the Control Room or on the local desktop. Use this File variable as the data source for all the XML automations that are run in this session.
- 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.
- Select the Remove text nodes that contain only
white space 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.
- Save the XML session.