
**Summary:** Represents base xmp element contains attributes.

**Module:** [aspose.imaging.xmp](/imaging/python-net/aspose.imaging.xmp/)

**Full Name:** aspose.imaging.xmp.XmpElementBase

## **Methods**
| **Name** | **Description** |
| :- | :- |
| [add_attribute(attribute, value)](#add_attribute_attribute_value_1) | Adds the attribute. |
| clear_attributes() | Removes all attributes. |
| [get_attribute(attribute)](#get_attribute_attribute_2) | Gets the attribute. |


### Method: add_attribute(attribute, value) {#add_attribute_attribute_value_1}


```
 add_attribute(attribute, value) 
```

Adds the attribute.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| attribute | string | The attribute. |
| value | string | The value. |

### Method: get_attribute(attribute) {#get_attribute_attribute_2}


```
 get_attribute(attribute) 
```

Gets the attribute.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| attribute | string | The attribute. |

**Returns**

| Type | Description |
| :- | :- |
| string | Returns the attribute for specified attribute name. |


