Altova XMLSpy 2022 Enterprise Edition

Icons and shortcuts








Find Next





The Find command displays the Find dialog, in which you can specify the string you want to find and other options for the search. Depending on the current view, the Find dialog displays different options. To find text, enter the text in the Find field or use the combo box to select from one of the last 10 search criteria, and then specify the options for the search.


The Find and Find Next commands can also be used to find file and folder names when a project is selected in the Project window.



Grid View

In Grid View, the following dialog box appears. Select the options you require or select a radio button. The options available are described below.


The Types pane allows you to select what XML document nodes or components you wish to include in the search. This enables the search to skip particular node types and thus go faster. The Set All button selects all node types; the Clear All button deselects all node types.

The Search In pane allows you to define whether the names of a node, the contents of a node, or both should be searched for the input text string.

The Settings pane enables you to define whether the search should be case-sensitive and/or match the entire input string.

The Where pane allows you to define the scope of the search (the whole file or the selected text).

The Direction option specifies the search direction.




Text View

For a description of the Find function of editable Text Views, see the section Text View. The Find dialog of non-editable Text Views (such as in the XPath/XQuery window) is shown in the screenshot below.


The available options are as follows:


Match whole word only: Only the exact words in the text will be matched. For example, for the input string fit, with Match whole word only checked, only the word fit will match the find string; the fit in fitness, for example, will not.

Match case: Case-sensitive search (Address is not the same as address).

Regular expression: Searches for text specified by the regular expression you enter in the text box. See Regular expressions below for a description of regular expressions.

Note the following points:


The Find dialog is "modeless", which means that it can remain open while you continue to use Text View. Pressing Enter while the dialog box is open, closes the dialog box. If text is marked prior to opening the dialog box, then the marked text is automatically inserted into the Find What text box.

Once the Find dialog is closed, you can repeat the current search by pressing F3 for a forwards search, or Shift+F3 for a backwards search.

The Unfold button to the right of the Find What input box (the button marked >), opens a secondary window which you can use to enter regular expressions in the Find What input box.




Regular expressions

You can use regular expressions to further refine your search criteria. A pop-up list is available to help you build regular expressions. To access this list, click the Unfold button to the right of the Find What input box (the button marked >).



Clicking on the required expression description inserts the corresponding expression syntax in the input field. Given below is a list of regular expression syntax characters.



Matches any character. This is a placeholder for a single character.


Marks the start of a region for tagging a match.


Marks the end of a tagged region.


Where n is 1 through 9 refers to the first through ninth tagged region when replacing. For example, if the search string was Fred([1-9])XXX and the replace string was Sam\1YYY, when applied to Fred2XXX this would generate Sam2YYY.


Matches the start of a word.


Matches the end of a word.


Allows you to use a character x, which would otherwise have a special meaning. For example, \[ would be interpreted as [ and not as the start of a character set.


Indicates a set of characters. For example, [abc] means any of the characters a, b or c. You can also use ranges: for example [a-z] for any lower case character.


The complement of the characters in the set. For example, [^A-Za-z] means any character except an alphabetic character.


Matches the start of a line (unless used inside a set, see above).


Matches the end of a line. Example: A+\$ to find one or more A's at end of line.


Matches 0 or more times. For example, Sa*m matches Sm, Sam, Saam, Saaam and so on.


Matches 1 or more times. For example, Sa+m matches Sam, Saam, Saaam and so on.


Note: Regular expressions are not supported in the Replace field.        


Find Next

The Find Next command repeats the last Find command. It searches for the next occurrence of the input text.


© 2016-2022 Altova GmbH