CustomXmlPart Object (JavaScript API for Excel)

Represents a custom XML part object in a workbook.

Properties

Property Type Description Req. Set
id string The custom XML part's ID. Read-only. 1.5
namespaceUri string The custom XML part's namespace URI. Read-only. 1.5

See property access examples.

Relationships

None

Methods

Method Return Type Description Req. Set
delete() void Deletes the custom XML part. 1.5
getXml() string Gets the custom XML part's full XML content. 1.5
setXml(xml: string) void Sets the custom XML part's full XML content. 1.5

Method Details

delete()

Deletes the custom XML part.

Syntax

customXmlPartObject.delete();

Parameters

None

Returns

void

getXml()

Gets the custom XML part's full XML content.

Syntax

customXmlPartObject.getXml();

Parameters

None

Returns

string

setXml(xml: string)

Sets the custom XML part's full XML content.

Syntax

customXmlPartObject.setXml(xml);

Parameters

Parameter Type Description
xml string XML content for the part.

Returns

void