Slim XML Editing

Slim XML Editing

Context-Sensitive Content Completion Assistant

Oxygen offers the list of elements, attributes, and attribute values through the Content Completion Assistant. Unlike other editors that suggest all the available entries (for example, all the factor names defined by the document XML Schema), Oxygen shows only those entries that are valid te the current editing setting. Therefore, the XML document always remains valid and the user does not need experienced skill of the relationship inbetween elements.

Ter the following pic, you can see that the list of possible elements for the tgroup factor contains colspec, tbody, and thead, which is exactly what the DocBook DTD has defined.

Support for Demonstrating Latest Content Items

The proposals that have previously bot used are promoted at the top of the content completion list, thus permitting for efficient re-use. For example, when editing an XSLT stylesheet, you use a puny fraction from the entire set of XSLT and HTML elements. By sorting the recently used proposals to emerge at the top of the list, it makes it lighter to find them the next time you want to use them.

Te the following picture, you can see the four XSLT elements that were previously used and they show up above the other elements of the XHTML grammar.

Content Completion Assistant for Documents Without a Schema

If there is a schema associated with the edited document, Oxygen analyzes it and initializes the Content Completion Assistant. If the document has no associated schema, the Content Completion Assistant is initialized by examining the edited document and learning its structure. You can also specify the default XML Schema or DTD to be used for each document type.

Note that the learned structure can be saved to a DTD verkeersopstopping and can be used spil a skeleton for further development.

Configurable Content Completion Assistant Behavior

There are numerous settings that permit you to customize the behavior of the Content Completion Assistant. For example, you can enable or disable the generation of the required content or modify the way the cursor is placed after an injection.

Content Completion Assistant for IDREFS

Oxygen displays the ID values collected from the most latest validation ter the list of content completion proposals where an IDREF or IDREFS type is specified. This not only works with documents that have an associated DTD but also with documents that have an XML Schema or Loosen NG schema associated.

Te the following pic, you can see that when using the Content Completion Assistant on a verbinding (for a linkend attribute value), it contains the IDs found elsewhere te the document.

When an attribute value is of the type anyURI (te both XML Schema and Relieve NG schema), Oxygen displays proposals of the form #ID for each defined ID value te the document.

Search/Refactoring Support for ID/IDREFS

Oxygen offers support for search and refactoring operations for ID/IDREFS ter XML documents that have an associated DTD, XML Schema, or Relieve NG Schema. Thesis operations are available te the Text and Author modes.

Te Text mode, the easiest way to access the search/refactoring activity is by using the Quick Assist support. It is available when you position the cursor inwards an ID or an IDREF and click the yellow light bulb from the line-number stripe on the left side of the editor.

Highlight ID Occurrences te Text Mode

To see the occurrences of an ID ter an XML document while ter Text mode, you can simply place the cursor inwards the ID declaration or reference. The occurrences are marked te the derecho side buffet at the right side of the editor and you can click a marker to navigate to that particular occurrence. The occurrences are also highlighted ter the editing area.

XML Quick Fixes

The Oxygen Quick Fix support helps you resolve errors that emerge te an XML document by suggesting quick fixes to problems such spil missing required attributes or invalid elements. Quick fixes are available for XML documents that are validated against XSD, Loosen NG, or Schematron schemas.

Oxygen automatically analyzes the current error and proposes quick fixes te order to solve it ter a single step. The quick fixes are available te both Text and Author editing modes.

Support for Enumerations

The Content Completion Assistant offers proposals for attributes and factor values with a type that is an enumeration of tokens. This is available for documents that use XML Schema or Relieve NG schema.

Te the following photo, the attribute list of the root factor has bot defined spil a list of fracción values (1.44, Two.88, Three.0, and Five.0) and the Content Completion Assistant offers proposals accordingly.

Automatic Generation of Required Content

To speed up the content creation, Oxygen automatically inserts the required attributes or content of an factor. Ter the following pic, you can see how an entire subtree is generated just by selecting an factor. This permits you to create valid content with ondergrens effort.

Code Templates

Document fragments can be defined and re-used while editing through code templates. The template list can be obtained with the Content Completion Assistant by using the CTRL+SPACE keyboard shortcut. Oxygen includes a large number of ready-to-use templates for XSLT, XQuery, XML Schema, and CSS, but you can also create your own code templates for any type of document. The templates can also be collective with others by using Uitvoer and Invoer deeds.

Te the following pic, the Preview pane shows you how a Copy-Template code template has bot defined. After injection, the cursor will be placed after the xsl:template closing tag line.

Resource Hierarchy/Dependencies View

The relationship inbetween XML resources that are referenced using XInclude and outer entity mechanisms can be visualized and understood with the help of the Resource Hierarchy/Dependencies View.

Update References of Moved or Renamed Resources

When an XML, XSL, XSD, or WSDL resource is renamed or moved ter the Project view, Oxygen gives you the option to update the references for that resource. The same option is available when you budge or rename a resource ter the Resource Hierarchy/Dependencies view.

Matching Tag Highlight and Navigation

When placing the cursor inwards a tag name, both the start-tag and the end-tag are underlined to provide instant concentrate on the current factor. You can budge the cursor to the matching tag using the Go to Matching Tag act from the contextual spijskaart and Oxygen includes a multiplicity of helpful shortcuts to help to lightly identify and navigate XML tags.

Automatic Editing of the Matching End-Tag

It is effortless to rename elements ter Oxygen. When the start-tag of an XML factor is edited, the matching end-tag is automatically switched, thus keeping the XML document “well-formed” and saving you a few keystrokes.

Lock/Unlock XML Tags

The Lock/Unlock XML Tags option permits you to protect the markup from accidental switches and to limit modifications to text sections. This is especially useful when editing XML documents or templates with immovable markup where only text content is permitted to be modified.


XML documents have a tree-like structure. Folding permits you to collapse elements, leaving only those that you need to edit te the concentrate. A unique feature of Oxygen is the fact that the folds are persistent (the next time you open the document the folds are restored to the last state so you can proceed to work from where you left off). For non-XML files, the folding strategy is to collapse blocks of text that have the same indent.

Te the following pic, you can see that only one section is expanded and the surplus are collapsed. The number of lines that were collapsed are listed te brackets on the right side of the folded elements.

You can also use contextual spijskaart deeds to collapse or expand a selected fold, its child folds, or all other folds

Optional Content Generation

When creating a fresh XML document, the editor generates the content of the root factor based on the required elements spil it wasgoed specified te the associated schema or DTD. Two options are also available to make the content generation process take into account optional content and choice models, thus permitting you to obtain more content for the fresh document.

Te the following picture, the webpagina factor wasgoed chosen spil the root of the fresh document. The checkboxes above the text display the settings from the Fresh Document dialog opbergruimte. You can see that activating the optional content generation options produce more generated content.

2 thoughts on “Slim XML Editing

Leave a Reply

Your email address will not be published. Required fields are marked *