This page is a work in progress.
Using Oxygen: Tips
Oxygen has default shortcuts established to simply markup. You can view these or modify them here:
Options → Preferences + Menu Shortcut Keys. It also provides task panes with useful information for navigating within an XML document and encoding it.
Checking well-formedness and validity
To check that an XML document is well-formed XML, click the toolbar button with the blue check mark:
To check that an XML document is valid to the DTD or Schema it references, click the toolbar button with the red check mark:
Format and indent
When encoding, it is often useful to "clean up" the display to better view the hierarchy of the XML document. The "Format and Indent" feature only works if the XML document is well-formed:
The "Outline view" is a task pane that shows the current hierarchy of the XML document in a tree view. It is useful for navigating around the structure of the XML document quickly. If it is not displayed by default, you can see it by selecting Perspective -> Show View -> Outline.
The "Model view" is a task pane that shows what elements and attributes are available based on the current cursor position if the XML document references a DTD or Schema. If it is not displayed by default, you can see it by selecting Perspective -> Show View -> Model.
Control + E:
Short cut for tagging a chunk of content. For example, a paragraph from a book or a poem, or a title or a name. This feature is most useful when marking up text that has been pasted into Oxygen.
<lg> How soon go by the swift-winged years How soon comes our three score and ten; Our lives are mixed with joys and tears, Sad disappointments, dead hopes, fears, And sighing o'er what might have been. </lg>
<lg> <l>How soon go by the swift-winged years</l> <li>How soon comes our three score and ten;</l> <li>Our lives are mixed with joys and tears,</l> <li>Sad disappointments, dead hopes, fears,</l> <li>And sighing o'er what might have been.</l> </lg>
Control + slash :
Short cut for tagging repetitive chunks of content.
Using Oxygen: Preferences
In general, keep all the default settings unless you become an expert Oxygen user and would prefer to change the options to better accommodate encoding.
Double-check the following:
- Under "Encoding," set:
- Encoding for non XML files to: "UTF8"
- Encoding erros handling to: "Ignore"
- Under "Content Completion," select:
- Auto close the last opened tag
- Automatically rename matching tag
- Use content completion
Other tidbits to incorporate into this page at some point
I am not sure if anyone mentioned this, but if one right clicks on the toolbar, you can add XML Refactoring to the toolbar. This includes renaming tags, splitting, surrounding (highlighted tex), and deleting tags (but not content).
With respect to macros, if you go into Options > Preferences > Editor > Templates > Code Templates, you will find NoteTab like macro features. This feature is not as powerful as that in NoteTab, but it can be quite useful for repetitive tagging.