For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Tag Value

This is a pre-built Action located under the @Generic Element. The functionality of this Action in Avo Assure is to fetch the tag value based on the input provided and store the result in a dynamic variable.

Syntax

Input Value: <Xml_input>;<path>

Note:

  • You can manually provide the key path or generate it automatically using the Data Path Builder for the XML input. Use the generated path as the input for the Get Tag Value action.

  • The index starts from 1 to retrieve items from the list.

Argument
Description

<Xml_input> (Required)

Provide the XML block or XML tags from which the tag value needs to be retrieved.

<path> (Required)

Provide the path of the tag to retrieve its value from the XML input.

Output Value: <Dynamic Variable>;<Dynamic Variable>(Optional)

Argument
Description

<Dynamic Variable> (Required)

This dynamic variable stores the fetched key value from the XML body or XML Tag.

<Dynamic Variable> (Optional)

This dynamic variable stores the status as True, False, or None.

Example: Retrieving a Tag Value from an XML Input Using Path

In this example, we explain how to retrieve a specific tag value from an XML input using the XML path.

  • Action: Get Tag Value

  • Input Value: <Xml_input>;CompanyData.Departments.Department[3].deptId

    • The first argument (<Xml_input>) specifies the XML input from which the tag value is retrieved.

    • The second argument (CompanyData.Departments.Department[3].deptId) specifies the XML path used to locate the required tag value.

    • The array index ([3]) specifies the third Department tag in the XML structure.

  • Output Value: {DeptId};{Status}

    • The first output variable ({DeptId}) stores the retrieved tag value as D003.

    • The second output variable ({Status}) stores the execution result with the following possible values:

      • True: If the tag value is retrieved successfully.

      • False: If the tag path does not exist or the XML input is invalid.

  • Logical Explanation: The Get Tag Value action takes the value from the Input Value column (<Xml_input>;CompanyData.Departments.Department[3].deptId) and searches for the specified tag path in the XML input. The action navigates through the XML structure, accesses the third Department tag using index [3], retrieves the deptId value (D003), and stores it in the {DeptId} variable. The execution result is stored in the {Status} variable as True.

Last updated