add method

Contents
[ ]

add

Adds new custom xml part.

Returns

Created custom xml part.

def add(self, xml_data):
    ...
ParameterTypeDescription
xml_databytesThe xml data of new part to be added.

Exceptions

ExceptionDescription
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):
    ...
ParameterTypeDescription
xml_stringstrThe xml string of new part to be added.

Exceptions

ExceptionDescription
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):
    ...
ParameterTypeDescription
input_streamio.RawIOBaseThe inputStream with xml data of new part to be added.

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentNullException))inputStream is None.
RuntimeError(Proxy error(ArgumentException))Data in inputStream is empty or Sinvalid.

See Also