> For the complete documentation index, see [llms.txt](https://help.metaforms.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.metaforms.ai/survey-programming-decipher/legacy-flow/build-page-walkthrough/xml-editor.md). Agents can also search and read this documentation through its [MCP server](https://help.metaforms.ai/~gitbook/mcp).

# XML Editor

The **XML Editor** is the heart of the Build Page in Metaforms. It allows survey programmers to generate, modify, and review the raw XML structure that defines your questionnaire. This is where all the magic happens - from AI-assisted survey creation to advanced logic and customizations.

You’ll find the XML Editor in the left panel of the Build Page, alongside the **Clarification Sheet** and **Quota Sheet**, while the right panel displays your original questionnaire (QNR) document for side-by-side reference.

## Key Features in the XML Editor

1. **Generate with AI / Edit with AI :** AI tooling to help generate or modify survey XML
2. **Choose Specialisations** **:** Specializations define the complexity and features that the AI should account for while generating XML.
3. **Edit History :** Every time you save a change in your XML, Metaforms logs it automatically. You can revert or look at earlier versions of your documents.
4. **Editor Interface:** The actual code editor is a fully featured XML workspace where you can make changes to the XML

<figure><img src="https://1402057010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgtHd8o9ldznZ1hKHiZvc%2Fuploads%2Fgit-blob-885862e0178a84b007b90c4ff11de2dceffd720e%2FScreenshot%202025-06-20%20at%202.35.06%E2%80%AFPM.png?alt=media" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.metaforms.ai/survey-programming-decipher/legacy-flow/build-page-walkthrough/xml-editor.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
