Author XML code with attribute IDs hidden

When you are working in the Oxygen editor and updating the structure and content in Edit XML source mode, attribute tags are shown by default. If you want to see less code, you can temporarily hide attribute tags using a button on the tool bar.

Tips and tricks

  • For help writing XML code for a DITA topic, refer to Oxygen's XML guide: Introduction to DITA 1.3
  • If you make a coding error, you only see a warning when you try to save the component.

    • You can fix the error in Edit XML source mode and try again to save your changes.
    • You can also Switch to Author mode and use the right panel option for validation.

      The Validation pane provides you with a More details link to learn more about the XML language rules.

      Check for errors in the Validation pane

To author XML code with attribute IDs hidden:

  1. Click Components_TopMenuOpt Components.
  2. In the Folders pane, navigate to the folder where you've saved the component.
  3. In the Components pane, select the component you want to open.
  4. 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...
  5. 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
  6. To hide attribute tags, click 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.