> For the complete documentation index, see [llms.txt](https://docs.roboteasy.tech/studio-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboteasy.tech/studio-en/studio/objetos/xml/obter-valor-do-atributo.md).

# Get Attribute Value

Object to get the attribute value of an element

{% hint style="info" %}
This object depends on other objects : Import XML, Select Element&#x20;
{% endhint %}

## Settings&#x20;

![](https://1031980850-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRKcZBCSfHjT8BRPnSe%2F-MXqktmBzSPA_9j6Jzpm%2F-MXqn646QVrZGB9oTvrE%2Fimage.png?alt=media\&token=02f3575a-37e8-4c15-969f-bbfbb4265524)

| Field                  | Descriptive                                                                                                                                   |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Title                  | Object title                                                                                                                                  |
| Object Identifier Name | Singular variable name                                                                                                                        |
| Select Main Object     | Select an XML object for the operation                                                                                                        |
| Add Element            | Adds a new element field                                                                                                                      |
| Element                | XML element that you want to find. If it has attributes, separate them with space. If you want to validate the attribute value, do: root id=2 |
| Attribute Name         | The name of the attribute whose value you wish to get                                                                                         |

### Example

![](https://1031980850-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRKcZBCSfHjT8BRPnSe%2F-MXqoCE9RYspxSFHT2P0%2F-MXqoyVpsuyvLNd5PMpP%2Fimage.png?alt=media\&token=87417d25-73f2-4211-a7cb-476d5757faf9)
