# Get XML Block Data

The Get XML Block Data action in the Avo Assure is found under the @Generic Element is used to retrieve XML data from a specified block, based on the provided block XPath and save the result in the given output variable.

### **Syntax**

**Input:** `<Filepath >;<block xpath>`

{% hint style="info" %}
**Note:** The tag which user want to find or store in output that user need to mention as block xpath.
{% endhint %}

**Output:** `<Dynamic Variable>;<Dynamic Variable>(Optional)`

<figure><img src="/files/evlwovUVOmDt5P12hkLY" alt=""><figcaption></figcaption></figure>

### **Usecase/Example**

<figure><img src="/files/cQhGl5vlMdmfBf3oz6JF" alt=""><figcaption></figcaption></figure>

### **Scenario**

A transportation provider receives shipping data in XML format, containing blocks of information such as sender details, package contents, and delivery dates. During testing, the Avo Assure tool uses the specified XPath to retrieve data from the “name” block. This allows testers to confirm that each package name in the XML file is accurate. By automatically extracting data from the specified block, they ensure the tracking system displays correct information without requiring manual checks of each XML file.

### **Input**

Provide the correct input as shown below:

&#x20;C:\Docs\xml1.xml;\<name>

**XML Data:**

The user must provide the name of the block they want to check.

```
<widget>
<debug>on</debug>
<window title="Sample Konfabulator Widget">
                   <name>main_window</name>
       <width>500</width>
       <height>500</height>
</window>     
</widget>
```

### **Expected Result**

It should display the \<name> block content specified in the input value.

### **Output**

The result of Get XML Block Data action is stored in the {result} output variable as\[‘\<name>main\_window\</name>’], which can be utilized for display or other purposes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/generic/xml-and-json-operations/get-xml-block-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
