Is there a way to both get the current XML of a Powerpoint and load an edited version of the XML into the PowerPoint?

Farouk Charkas 0 Reputation points
2025-04-28T16:54:09.9333333+00:00

I am creating a Powerpoint Taskpane Add-in and need a way to read the current XML of the entire Powerpoint when the taskpane is open, then I need a way to be able to load in XML.

I'm aware there's the API to interact with the objects, but it'd be way more helpful to get it in XML format.

I tried putting it together myself using the Powerpoint JavaScript API but need it in XML.

PowerPoint Management
PowerPoint Management
PowerPoint: A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.Management: The act or process of organizing, handling, directing or controlling something.
249 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Aishwarya Bajantri 0 Reputation points
    2025-04-28T16:55:44.2233333+00:00

    Yes, you can extract the current XML of a PowerPoint by saving it as a .pptx file (which is a ZIP archive containing XML files). To load an edited version, you would modify the XML files inside the archive and then repackage the files back into a .pptx file.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.