Inject custom XML part (W/P/E)

Modified on Mon, 5 Oct at 1:54 PM

Office extensions supports the ability to inject xml parts from files in the content folder as a custom xml part in an active document.

CMD

<Cmd case="BaseExtensions:CreateXmlPart" path="x" override="x" />

Parameters

path

Required. Defines the path to the xml part to be injected. The root folder is assumed to be Content/BaseExtensions. The xml part must be saved as an xml file in this folder and the file extension should be included in the path definition. Example path="teste.xml".

override

Required. Defines whether or not the xml part should overwrite an existing part with the same name if one is found in the active document.

NOTE: It is entirely possible to have multiple different files with the same part name within the content folder but we can only inject one version of an xml part.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article