> For the complete documentation index, see [llms.txt](https://astro-rpa.gitbook.io/astro-rpa-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://astro-rpa.gitbook.io/astro-rpa-user-guide/g_elements/el_basic/els_data/els_data_xml/xpath-query.md).

# XPath query

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-16fe17ef234f0a75f66653bd0d591d691075f801%2Fimage%20\(203\).png?alt=media)

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-7dda07cfb16ce404e1e17ecf08ed257d5eac3995%2FXPath_query.png?alt=media)

Element that searches an XML document according to XPath query.

Properties

\- Data (String): \[String] XML string

\- Data (object): \[System.Xml.XmlDocument] XML object '<https://docs.microsoft.com/ru-ru/dotnet/api/system.xml.xmldocument?view=netframework-4.6>'

\- XPath\*: \[String] XPath query (//s:Body/a:Code) '<https://www.w3schools.com/xml/xpath\\_syntax.asp>'

\- Variable (object array): \[System.Xml.XmlNodeList] Variable that gets result objects

\- Variable (string array): \[System.Collections.Generic.List\<String>] Variable that gets result values

\- Variable (string): \[String] Variable that gets the first result value.
