add method

add(part)

Adds an item to the collection.

def add(self, part: aspose.words.markup.CustomXmlPart):
    ...
ParameterTypeDescription
partCustomXmlPartThe 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):
    ...
ParameterTypeDescription
idstrIdentifier of a new custom XML part.
xmlstrXML data of the part.

Returns

Created custom XML part.

See Also