We’re dealing with workbooks that have multiple CustomXmlParts and we need to find a specific CustomXmlPart. Essentially, we need to parse and examine all the CustomXmlParts in the workbook in order to find the CustomXmlPart we’re looking for. This could be an expensive operation.
Ideally, we would like a new API on the
CustomXmlPart class that allows us to get and set its ID. Additionally, we would require a new API in the
CustomXmlPartCollection that gets a
CustomXmlPart based on its ID. These new APIs would be similar to the
setId APIs provided by Aspose Words for their CustomXmlPart class and
getById in the CustomXmlPartCollection class.
Also note that Excel VBA provides a means to get a CustomXmlPart via the SelectByID API.