Searching for Referencing Nodes

You can use the Find References feature to find all the constructs that reference a definition you select in the XML Schema diagram. You can search for references to

  • Global elements
  • Simple global types
  • Complex global types

In addition to the current XML Schema, Stylus Studio searches any included or imported XML Schemas for references.

Search Results

Search results are displayed in the Output window, as shown in Figure 259. Information in the result includes

  • The name of the node whose references you are looking for
  • Searched files (that is, the current XML Schema and any included or imported XML Schemas)
  • The location (file URL, and line:column) of the reference

Figure 259. Results of a Search for Referencing Nodes

Pressing F4:

  • Highlights the first search result
  • Scrolls the text pane to the referencing node (note the blue marker in the text pane margin)
  • Scrolls the diagram pane and highlights the referencing node

Pressing F4 again repeats this action for the next search result.

To search for referencing nodes in an XML Schema:
1. Select the XML Schema node for which you want to find referencing nodes.
2. Right-click, and select Find References from the shortcut menu.

Alternative: Select Diagram > Find References from the Stylus Studio menu.

 
Free Stylus Studio XML Training: