How to Edit Document XML Source

It is possible to edit the source of XML document in Serna, i.e. edit document as text. There are two possible approaches:

  1. Switch to text mode

    Go to Help > Switch to Text Mode to edit your whole document as XML source.

    Note, this mode is not recommended for general user, and is intended mostly for fixing XML syntax errors. Use this mode only if you know what you are doing.

  2. Edit selection as text

    You can edit the source of only a part of the XML document. For this select the portion you wish to edit, and select Edit > Edit Selection as Text , Edit Selection as Text Dialog will appear.

    If you make a syntactic error while editing the selected portion, Serna will signal error and refuse to accept the changes you have made.

    Figure 1. Edit Selection As Text Dialog