The Outline view displays a general tag overview of the currently
edited XML document. When you edit a document, the Outline view
dynamically follows the changes that you make, displaying the node that you modify. This
functionality gives you great insight on the location of your modifications in the current
document. It also shows the correct hierarchical dependencies between elements. This makes it
easy for you to be aware of the document structure and the way element tags are nested.
Outline View Features
The
Outline view allows you to:
- Quickly navigate through the document by selecting nodes in the
Outline tree.
- Insert or delete nodes using contextual menu actions.
- Move elements by dragging them to a new position in the tree structure.
- Highlight elements in the editor area. It is synchronized with the editor area, so
when you make a selection in the editor area, the corresponding nodes are highlighted in
the Outline view, and vice versa.
- View document errors, as they are highlighted in the Outline
view. A tooltip also provides more information about the nature of the error when you
hover over the faulted element.
Outline View Interface
By default, it is displayed on the left side of the editor. If the view is not displayed, it can be opened by selecting it from the menu.
The upper part of the Outline view contains a
filter box that allows you to focus on the relevant components. Type a text fragment in the
filter box and only the components that match it are presented. For advanced usage you can use
wildcard characters (such as * or ?) and separate multiple
patterns with commas.
It also includes a View
menu in the top-right corner that presents a variety of options to help
you filter the view even further.
Drag and Drop Actions in the Outline View
Entire XML elements can be moved or copied in the edited document using only the mouse in
the Outline view with drag-and-drop operations. Several drag and drop
actions are possible:
- If you drag an XML element in the Outline view and drop it on
another node, then the dragged element will be moved after the drop target element.
- If you hold the mouse pointer over the drop target for a short time before the drop then
the drop target element will be expanded first and the dragged element will be moved
inside the drop target element after its opening tag.
- You can also drop an element before or after another element if you hold the mouse
pointer towards the upper or lower part of the targeted element. A marker will indicate
whether the drop will be performed before or after the target element.
- If you hold down the Ctrl (Command on macOS)
key after dragging, a copy operation will be performed instead of a move.
Outline View Filters
The upper part of the Outline view contains a
filter box that allows you to focus on the relevant components. Type a text fragment in the
filter box and only the components that match it are presented. For advanced usage you can use
wildcard characters (such as * or ?) and separate multiple
patterns with commas.
Outline View Contextual Menu Actions
The contextual menu of the
Outline view contains the following actions:
Edit
Attributes
- Displays an in-place attributes editor that allows you to edit the attributes of a
selected node.
- Edit Profiling Attributes (Available in Author mode)
- Allows you to change the profiling
attributes defined on all selected elements.
- Append Child
- Invokes a content completion list with the names of all the elements that are
allowed by the associated schema and inserts your selection as a child of the current
element.
- Insert Before
- Invokes a content completion list with the names of all the elements that are
allowed by the associated schema and inserts your selection immediately before the
current element, as a sibling.
- Insert After
- Invokes a content completion list with the names of all the elements that are
allowed by the associated schema and inserts your selection immediately after the
current element, as a sibling.
Cut,
Copy,
Paste,
Delete common
editing actions
- Executes the typical editing actions on the currently selected elements. The
Cut and Copy operations preserve the
styles of the copied content.
- Paste before (Available in Author mode)
- Inserts a well-formed copied element before the currently selected element.
- Paste after (Available in Author mode)
- Inserts a well-formed copied element after the currently selected element.
- Paste as XML (Available in Author mode)
- Pastes copied content that is considered to be valid XML, preserving its XML
structure.
- Encloses the currently selected element in a comment, if the element is not already
commented. If it is already commented, this action will remove the comment.
Rename
Element (Available in Author mode)
- Invokes a Rename dialog box that allows you to rename the
currently selected element, siblings with the same name, or all elements with the same
name.
Expand All
- Expands the structure tree of the currently selected element.
Collapse
All
- Collapses all of the structure tree of the currently selected node.
Tip: You can copy, cut or delete multiple nodes in the
Outline by using the contextual menu after selecting multiple nodes
in the tree.