
**Summary:** An XMP element collection.

**Module:** [aspose.imaging.xmp](/imaging/python-net/aspose.imaging.xmp/)

**Full Name:** aspose.imaging.xmp.XmpCollection

**Inheritance:** IXmpType

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [XmpCollection()](#XmpCollection__1) | Initializes a new instance of the [XmpCollection](/imaging/python-net/aspose.imaging.xmp/xmpcollection/) class. |
## **Methods**
| **Name** | **Description** |
| :- | :- |
| [add(item)](#add_item_1) | Adds new item. |
| [add_item(item)](#add_item_item_2) | Adds new item. |
| [get_xml_value()](#get_xml_value__3) | Converts XMP value to the XML representation. |
| [get_xmp_representation()](#get_xmp_representation__4) | Gets the XMP string value of this. |


### Constructor: XmpCollection() {#XmpCollection__1}


```
 XmpCollection() 
```

Initializes a new instance of the [XmpCollection](/imaging/python-net/aspose.imaging.xmp/xmpcollection/) class.

### Method: add(item) {#add_item_1}


```
 add(item) 
```

Adds new item.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| item | System.Object | The item to be added to list of items. |

### Method: add_item(item) {#add_item_item_2}


```
 add_item(item) 
```

Adds new item.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| item | string | The item to be added to list of items. |

### Method: get_xml_value() {#get_xml_value__3}


```
 get_xml_value() 
```

Converts XMP value to the XML representation.

**Returns**

| Type | Description |
| :- | :- |
| string | Returns the XMP value converted to the XML representation. |


### Method: get_xmp_representation() {#get_xmp_representation__4}


```
 get_xmp_representation() 
```

Gets the XMP string value of this.

**Returns**

| Type | Description |
| :- | :- |
| string | Returns the string contained value in XMP format. |


