add method
Contents
[
Hide
]add
Adds new custom xml part.
Returns
Created custom xml part.
def add(self, xml_data):
...
Parameter | Type | Description |
---|---|---|
xml_data | bytes | The xml data of new part to be added. |
Exceptions
Exception | Description |
---|---|
RuntimeError(Proxy error(ArgumentNullException)) | xmlData is None . |
RuntimeError(Proxy error(ArgumentException)) | xmlData is empty or invalid. |
add
Adds new custom xml part.
Returns
Created custom xml part.
def add(self, xml_string):
...
Parameter | Type | Description |
---|---|---|
xml_string | str | The xml string of new part to be added. |
Exceptions
Exception | Description |
---|---|
RuntimeError(Proxy error(ArgumentNullException)) | xmlString is None . |
RuntimeError(Proxy error(ArgumentException)) | xmlString is empty or xml-data is invalid. |
add
Adds new custom xml part.
Returns
Created custom xml part.
def add(self, input_stream):
...
Parameter | Type | Description |
---|---|---|
input_stream | io.RawIOBase | The inputStream with xml data of new part to be added. |
Exceptions
Exception | Description |
---|---|
RuntimeError(Proxy error(ArgumentNullException)) | inputStream is None . |
RuntimeError(Proxy error(ArgumentException)) | Data in inputStream is empty or Sinvalid. |
See Also
- class
ICustomXmlPart
- class
ICustomXmlPartCollection
- module
aspose.slides
- library
Aspose.Slides