> 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).

# 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="/files/84OEkUvq7vrQxEKdvsak" 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 dynamically by asking a question.

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

```
GET https://help.metaforms.ai/survey-programming-decipher/legacy-flow/build-page-walkthrough/xml-editor.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.
