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

Exception

ErrorCondition
ArgumentExceptionvalue is empty or xml-data is invalid.

getXmlData

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

Returns: byte

Exception

ErrorCondition
ArgumentExceptionvalue is empty or xml-data is invalid.

remove

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

Returns: void

Exception

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.

Returns: void


setXmlAsString

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

Returns: void

Exception

ErrorCondition
ArgumentExceptionvalue is empty or xml-data is invalid.

setXmlData

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

Returns: void

Exception

ErrorCondition
ArgumentExceptionvalue is empty or xml-data is invalid.