CustomXmlPart

CustomXmlPart class

Represents custom xml part.

getItemId

NameDescription
getItemId()Specifies a globally unique identifier (GUID) that uniquely identifies a single custom XML part within an Office Open XML document. Read-only java.util.UUID.

Returns: UUID


getNamespaceSchemas

NameDescription
getNamespaceSchemas()Returns the collection XML schemas that are associated with the custom XML part. Read-only String[].

Returns: String


getXmlAsString

NameDescription
getXmlAsString()Returns or sets xml data as UTF-8 string. Read/write String.

Returns: String

Error

ErrorCondition
ArgumentExceptionvalue is empty or xml-data is invalid.

getXmlData

NameDescription
getXmlData()Returns or sets xml data. Read/write byte[].

Returns: byte

Error

ErrorCondition
ArgumentExceptionvalue is empty or xml-data is invalid.

remove

NameDescription
remove()Removes the custom xml part from the presentation.

Error

ErrorCondition
PptxEditExceptionThrown if xml part is already removed.

setItemId

NameDescription
setItemId(UUID)Specifies a globally unique identifier (GUID) that uniquely identifies a single custom XML part within an Office Open XML document. Read-only java.util.UUID.

setXmlAsString

NameDescription
setXmlAsString(String)Returns or sets xml data as UTF-8 string. Read/write String.

Error

ErrorCondition
ArgumentExceptionvalue is empty or xml-data is invalid.

setXmlData

NameDescription
setXmlData(byte[])Returns or sets xml data. Read/write byte[].

Error

ErrorCondition
ArgumentExceptionvalue is empty or xml-data is invalid.