---
title: "Class XmlUtils | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms/XmlUtils/"
---

# Class XmlUtils

> **Inheritance:** `System.Object` -> XmlUtils

###### **Namespace**: [Aurigma.DesignAtoms](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.md)

###### **Assembly**: Aurigma.DesignAtoms.dll

```csharp title="Syntax"
public class XmlUtils
```

## Inherited Members

* `System.Object.ToString`
* `System.Object.Equals(System.Object)`
* `System.Object.Equals(System.Object,System.Object)`
* `System.Object.ReferenceEquals(System.Object,System.Object)`
* `System.Object.GetHashCode`
* `System.Object.GetType`
* `System.Object.MemberwiseClone`

## Constructors

### XmlUtils

```csharp
public XmlUtils()
```

## Methods

### XmlEscape

```csharp
public static string XmlEscape(string unescaped)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *unescaped* |  |

##### Returns

`System.String`

### XmlUnescape

```csharp
public static string XmlUnescape(string escaped)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *escaped* |  |

##### Returns

`System.String`

### IsValidXml

```csharp
public static bool IsValidXml(string text)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *text* |  |

##### Returns

`System.Boolean`

### FixAmps

```csharp
public static string FixAmps(string str)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *str* |  |

##### Returns

`System.String`
