# Edit Entire XML with AI

The **Edit Entire XML** feature allows you to edit your **entire survey script at once.** It’s ideal for **global updates, rewrites, or structural refactors,** without needing to manually scroll or select question blocks.

You can use

* Uses your instruction to **analyze the full survey XML**.
* Applies **consistent changes** across all relevant parts of the survey.
* Offers both **Quick Edit** and **QNR-Aware Edit** modes:
  * **Quick Edit** updates based solely on your instruction.
  * **Edit (Read QNR)** aligns changes with the questionnaire document.

<figure><img src="/files/GXKAH32zXelRxLHUZGsH" alt=""><figcaption></figcaption></figure>


---

# 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://help.metaforms.ai/survey-programming-decipher/legacy-flow/build-page-walkthrough/xml-editor/edit-entire-xml-with-ai.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.
