# Exporting Diagrams via XML

Guide to exporting diagrams in XML format.

This approach is suited to migrate individual diagrams and transfers only the diagram content to the target environment.

## No Metadata is transferred along with the diagram using this approach

This approach is a very fast way to transfer diagrams between environments that does not require admin privileges. However the diagram metadata (information about the diagram such as its description, who created/updated it, the contributors and consumers, and so on) are not exported along with the diagram.

**A** – Select 'Export' then 'XML' on the DIAGRAM pane

**B** – Uncheck the 'Compressed' option if you want to export it uncompressed (as human readable XML format)

**C** – Click EXPORT

**D** – The XML file will download automatically once ready. Drag and drop it (compressed or uncompressed) on the canvas on the target environment (option 1)

**OR**

**E** – Navigate to 'Edit Diagram' on the DIAGRAM pane

**F** – Select 'Add to Existing Diagram' in the drop-down menu

**G** – Delete the content here and paste the clean (uncompressed) XML here and click OK (option 2)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ins-pi.com/designer/work-in-the-app/diagram-operations/exporting-diagrams-via-xml.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
