add

add(String xmlString) function

Adds new custom xml part.

Parameters

NameTypeDescription
xmlStringStringThe xml string of new part to be added.

Result

CustomXmlPart

Error

ErrorCondition
com.aspose.ms.System.ArgumentExceptionxmlString is empty or xml-data is invalid.

add(byte[] xmlData) function

Adds new custom xml part.

Parameters

NameTypeDescription
xmlDatabyte[]The xml data of new part to be added.

Result

CustomXmlPart

Error

ErrorCondition
com.aspose.ms.System.ArgumentExceptionxmlData is empty or invalid.

addFromStream (CustomXmlPartCollection customxmlpartcollection, ReadStream inputStream, Function callback) function

Adds new custom xml part.

Parameters

NameTypeDescription
customxmlpartcollectionCustomXmlPartCollectionlink to self
inputStreamReadStreamThe inputStream with xml data of new part to be added.
callbackFunctioncallback(error, result) - Callback to be called when the method has completed

Result

CustomXmlPart

Error

ErrorCondition
com.aspose.ms.System.ArgumentExceptionData in inputStream is empty or invalid.