# Editing XML documents

The edition of generic XML documents in Amaya is still experimental. For the supported samples (XHTML, SVG, MathML), the edition follows the same rules as for the corresponding document type. For the other elements, only the Return command is available in this version :

- If the selection is within an element, Amaya cuts the selected element and creates a new element with the same type next to it.
- If a whole non-empty element is selected, Amaya creates a new element with the same type next to the selected element.
- If a whole empty element is selected, Amaya creates a sibling with the same type for the parent of the selected element.

You can also edit your XML documents in the Source View and use the Resynchronize command. Your modifications are then reported in the Formatted view.