In the Oxygen editor, if you want to edit the structure and content in your document as only XML code, you can switch to a mode where you only see text surrounded by tags. This is helpful if you only want to focus on editing the document structure and don't need to see images.


Tips and tricks
- If you make a coding error, you only see a warning when you try to save the component.



To edit the XML source:
-
Click
Components.
-
In the Folders pane, navigate to the folder where you've saved the component.
-
In the Components pane, select the component you want to open.
-
To open the file in the Oxygen editor, double-click the component.

You can also open a component in the following ways:
- To select the row, click it, then right-click and select Edit...
- To select the row, click it, then click
and select Edit...
-
By default Oxygen opens a component for editing in Author mode. To switch to Edit XML, do one of the following:
- In the editor, click
and then select
Edit XML Source
- Use the keyboard shortcut keys Alt+fn+F5
-
You can edit any of the code or text directly in the center pane.
-
Optionally, if you need to undo a change, in the toolbar, click
Undo.
The Oxygen editor allows you to undo up to 200 changes.
-
Optionally, if you to re-do a change, in the toolbar, click
Redo.
-
You can hide attribute tags by clicking
Hide Ids.
Important notes:
When attribute IDs are hidden, element tags and link references are still displayed.
- If you manually type in code to add an attribute after you Hide Ids, the attribute code is displayed until you Save and Submit your changes and re-open the component to hide the newly added attribute code.

You can select the
Show Ids button to show attribute IDs again.
-
To save your changes locally and keep the component open for editing, select
Save.
-
To save your changes to the database and close the component, select
Save and Submit.
-
To make changes to the document in a visual editor, select Switch to Author mode.