add method
add(part)
Adds an item to the collection.
def add(self, part: aspose.words.markup.CustomXmlPart):
...
| Parameter | Type | Description |
|---|---|---|
| part | CustomXmlPart | The custom XML part to add. |
add(id, xml)
Creates a new XML part with the specified XML and adds it to the collection.
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