---
title: "GmXmlParser | Customer&#x27;s Canvas"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/GmXmlParser/"
archived: false
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Customer's Canvas Hub"
    versions: ["cloud"]
    entity_id: "https://customerscanvas.com/products/hub#software-application"
  - product: "Design Atoms JS"
    versions: ["7.4"]
---

# GmXmlParser

**Applies to:** Customer's Canvas On-Premises; Customer's Canvas Hub cloud; Design Atoms JS 7.4

> API reference for the GmXmlParser module in @aurigma/design-atoms-text.

## Classes

### GmXmlParser

#### Constructors

##### Constructor

```ts
new GmXmlParser(colorParser): GmXmlParser;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `colorParser` | [`IColorParser`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IColorParser.md#icolorparser) |

###### Returns

[`GmXmlParser`](#gmxmlparser)

#### Methods

##### parse()

```ts
parse(
   text, 
   colorPalette, 
   defaultFontSize, 
   listStyleSheetManager): Text;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `text` | `string` |
| `colorPalette` | [`IColorPalette`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IColorPalette.md#icolorpalette) |
| `defaultFontSize` | `number` |
| `listStyleSheetManager` | [`IListStyleSheetManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IListStyleSheetManager.md#iliststylesheetmanager) |

###### Returns

[`Text`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/Text.md#text)
