add

add(String xmlString) method

Adds new custom xml part.

Parameters

NameTypeDescription
xmlStringStringThe xml string of new part to be added.

Returns

CustomXmlPart

Exception

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

add(byte[] xmlData) method

Adds new custom xml part.

Parameters

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

Returns

CustomXmlPart

Exception

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

add(InputStream inputStream) method

Adds new custom xml part.

Parameters

NameTypeDescription
inputStreamInputStreamThe inputStream with xml data of new part to be added.

Returns

CustomXmlPart

Exception

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