Chapter 14. Text editor specific actions

Table of Contents

Finding and replacing text in the current file
The Find All Elements dialog
VI editor actions

<oXygen/> XML Author provides user actions common in any text editor:

Finding and replacing text in the current file

The Find All Elements dialog

The Find All Elements dialog opened with the menu entry EditFind All Elements... assists you in defining "search for XML elements" operations on the current document. As a result, the dialog can perform the following:

  • Find all the elements with a specified name

  • Find all the elements which contain a specified string in their text

  • Find all the elements which have a specified attribute

  • Find all the elements which have an attribute with a specified value

All these search criteria can be combined to fine filter your results.

The results of all the operations in the Find All Elements dialog will be presented as a list in the Message Panel.

Figure 14.1. Find All Elements Dialog

Find All Elements Dialog

The dialog fields are described as follows:

Element name

The target element name to search for. Only the elements with this exact name are returned. For any element name just leave the field empty.

Element text

The target element text to search for. The combo box beside this field allows you to specify that you are looking for an exact or partial match of the element text. For any element text, select contains in the combo box and leave the field empty.

If you leave the field empty but select equals in the combo box, only elements with no text will be found.

Attribute name

The name of the attribute which needs to be present in the elements. Only the elements which have an attribute with this name will be returned. For any/no attribute name just leave the field empty.

Attribute value

The attribute value The combo box beside this field allows you to specify that you are looking for an exact or partial match of the attribute value. For any/no attribute value select contains in the combo box and leave the field empty.

If you leave the field empty but select equals in the combo box, only elements that have at least an attribute with an empty value will be found.

Case sensitive

When this option is checked, operations are case sensitive.