
## add(part) {#customxmlpart}

Adds an item to the collection.


```python
def add(self, part: aspose.words.markup.CustomXmlPart):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| part | [CustomXmlPart](../../customxmlpart/) | The custom XML part to add. |

## add(id, xml) {#str_str}

Creates a new XML part with the specified XML and adds it to the collection.


```python
def add(self, id: str, xml: str):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| id | str | Identifier of a new custom XML part. |
| xml | str | XML data of the part. |

### Returns

Created custom XML part.


## See Also

* module [aspose.words.markup](../../)
* class [CustomXmlPartCollection](../)

