XML Schema Editor: Using Find in the Schema View
See Also
The Find bar lets you find schema components in the current schema file. You can search for the following:
- Component Name. Finds components whose name attribute matches the search phrase.
- Component Kind. Finds components whose kind matches the search query.
- Attribute Declaration. Finds components with attributes of a particular name.
- Attribute Value. Finds components with attributes of a particular value.
- Namespace Usage. Finds named component references that reference components of a particular namespace.
You can also define the type of find to be performed:
- Search Selection. When selected, starts the find action from the component most recently selected in the Schema view. That is, rather than searching from the root of the schema document, the search is performed within the selected sub-tree.
- Use regular expression. When selected, the phrase entered into the text field is treated as a regular expression, with case-sensitivity.
To find schema components:
- In the IDE, make sure that the Schema view of your schema file is the active view.
- From the IDE main menu, choose Edit > Find.
You can also press Ctrl-F.
The Find bar opens at the bottom of the Schema view.
- In the Find box, click the magnifying glass icon
and select the type of find you want to perform: Component Name, Component Kind, Attribute Declaration, Attribute Value, or Namespace Usage.
- If you want to find matches from a specific point in the schema, instead of performing a search from the root of the schema, select a component in the Schema view, and in the Find box, click the magnifying glass icon
and select Search Selection.
- If you want to use a regular expression, in the Find box, click the magnifying glass icon
and select Use regular expression.
- In the Find box, type the text you want to find or type a regular expression and press Enter.
The IDE finds matching components and highlights the matches in the schema view.
The IDE shows the number of matches to the right of the Clear button in the Find bar.
The named matching components are highlighted in light orange. Components that reference the matching components may or may not be highlighted, depending on their names.
- Use the Find Next and Find Previous buttons to cycle through the matching components.
Find Next and Find Previous cycles through matching components in the order that they appear in the source of the schema file.
To clear highlights after a find:
- Click the Clear button in the Find bar.
The Find box is reset and the highlights are removed from the Schema view.
-or-
- Close the Find bar by clicking the Close Find Bar button
.
The highlights are removed from the Schema view.
- See Also
- > Regular Expressions For Finding and Replacing Text
- About the Schema View
Legal Notices