When editing an XML document, the following refactoring actions are available in the menu and the Markup toolbar:
Surround with
Tags (Ctrl E (Command E on OS
X) ) - Allows you to
choose a tag that encloses a selected portion of content. If there is no selection, the
start and end tags are inserted at the caret position.
Surround with
<tag> ((Ctrl+/)) - Similar to the
Surround with Tags action, except that it inserts the last tag
used.
Rename
Element - The element from the caret position, and any elements with the same
name, can be renamed according with the options from the Rename
dialog box.
Rename
Prefix
- The prefix of
the element from the caret position, and any elements with the same prefix, can be renamed
according with the options from the Rename dialog box.
Split
element
(Alt Shift
D) - Split the element from the caret position into two identical elements.
The caret must be inside the element.
Join elements
(Alt Shift
J) - Joins the left
and right elements relative to the current caret position. The elements must have the same
name, attributes, and attributes values.
Delete
element tags (Alt Shift
X) - Deletes the
start and end tag of the current element.