# Deserialize XML

> `UiPath.WebAPI.Activities.DeserializeXml`

`UiPath.WebAPI.Activities.DeserializeXml`

## Description

Deserializes an XML string to an XDocument object. For more information on `XDocument` objects, go [here](https://docs.microsoft.com/en-us/dotnet/api/system.xml.linq.xdocument?view=netcore-3.1).

## Project compatibility

**Windows - Legacy** | **Windows** | **Cross-platform**

## Cross-platform configuration

* **XMLString** - A string or string variable containing the XML to be deserialized. This field supports only strings and string variables.

### Advanced options

#### Output
* **XMLDocument** - The deserialized XML document, as an XDocument variable.

## Windows - Legacy, Windows configuration

### Properties panel

#### Input
* **XMLString** - A string or string variable containing the XML to be deserialized. This field supports only strings and string variables.
  :::note
  If the string provided in this property field is not valid XML syntax, an error is thrown at runtime.
  :::

#### Output
* **XMLDocument** - The deserialized XML document, as an XDocument variable.

#### Misc
* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.
* **Result** - A boolean variable that is true if the regular expression finds a match, false otherwise.

#### Common
* **DisplayName** - The display name of the activity.
