Udostępnij za pośrednictwem


Search the Schema Set

The XML Schema Explorer enables you to search the schema set in the following ways:

  • Keyword search

  • Schema-specific search

You perform keyword searches by using the XML Schema Explorer toolbar. The XML Schema Explorer searches the schema set for any name or ref attributes that match the specified keyword. This enables you to find an element, attribute, type, and so on by name.

The toolbar shows the results of the search. The search results are also highlighted in the XML Schema Explorer and marked on the scroll bar. You can navigate the search results by using the Go To Next Search Result and Go To Previous Search Result buttons on the XML Schema Explorer toolbar; by using the keyboard keys F3 and ALT-F3; or by clicking the tick marks in the scroll bar.

The following illustration shows the search options available on the XML Schema Explorer toolbar.

Search Toolbar

The XML Schema Explorer also includes built-in searches that you can access by using the shortcut menu of the XML Schema Explorer. The search results are highlighted in the XML Schema Explorer and marked on the scroll bar. You can navigate the search results by using the Go To Next Search Result and Go To Previous Search Result buttons on the XML Schema Explorer toolbar, clicking the highlighted item in the XML Schema Explorer, or clicking the tick marks in the scroll bar.

Node Type: Schema Set

The following table describes the search options that are available for a schema set node.

Search option Description

Show Most Likely Root Elements

Finds and highlights all global elements that are not referenced from global elements other than themselves.

Node Type: Namespace

The following table describes the search options that are available for a namespace node.

Search option Description

Show All Inbound References

Finds and highlights files that import the selected namespace.

Show All Outbound References

For every file in the selected namespace, finds and highlights the following:

  • All namespaces referenced in import statements without a schemaLocation attribute.

  • All files in namespaces other than the selected one that are specified in the schemaLocation attribute in import and include statements.

Node Type: File

The following table describes the search options that are available for a file node.

Search option Description

Show All Inbound References

Finds and highlights all files that specify the selected file in the schemaLocation attributes of their include and import statements.

Show All Outbound References

Finds and highlights the following:

  • All namespaces specified in the namespace attributes of all import statements that do not have the schemaLocation attribute.

  • All files specified in the schemaLocation attributes of all import and include statements.

Node Type: Element

The following table describes the search options that are available for an element node.

Search option Description

Go To Type Definition

Navigates to the type definition of the selected element. This is applicable when the type that is used for the element is a global type.

Go To The Original Element

For element references, navigates to the actual definition of the element.

Show All References

For global elements, finds and highlights all references (elements that have ref="selectedElement") to the selected element.

Show Members Of Substitution Group

For heads of a substitution group, finds and highlights all elements that are members of the substitution group of which the selected element is a member. This shows direct and indirect participants.

Show Substitution Group Heads

For global elements that are members of a substitution group, finds and highlights all direct and indirect heads for the selected element, such as the following:

  • A substitution group head specified on the selected element.

  • A substitution group head specified on its head element.

Node Type: Global Types

The following table describes the search options that are available for a global type node.

Search option Description

Show Base Type

If the selected type is derived from a global type, navigates to the base type of the selected type.

Show All References

Finds and highlights all references to the selected type. This includes elements and attributes of the selected type and types derived from the selected type.

Show All Derived Types

Finds and highlights all types that are directly and indirectly derived from the selected type.

Show All Ancestors

Show all parent (base) types.

Go To Redefinition

If this type is redefined in the schema, navigates to the redefinition node.

Go To Original Definition

If this type is a redefinition, navigates to the type definition.

Node Type: Attribute

The following table describes the search options that are available for an attribute node.

Search option Description

Go To Type Definition

When the type that is used for the attribute is a global type, navigates to the type definition of the selected attribute.

Go To The Original Attribute

For attribute references, navigates to the actual definition of the attribute.

Show All References

For global attributes, finds and highlights all references (other attributes that have ref="selectedAttribute") to the selected attribute.

Node Type: Attribute Group

The following table describes the search options that are available for an attribute group node.

Search option Description

Go To Definition

For references, navigates to the actual definition of the attribute.

Show All References

Finds and highlights all references (attribute groups that have ref="selectedAttributeGroup") to the selected attribute group.

Go To Redefinition

If this attribute group is redefined in the schema, navigates to the redefinition node.

Go To Original Definition

If this is a redefinition, navigates to the original type definition.

Node Type: Named Group

The following table describes the search options that are available for a named group node.

Search option Description

Go To Definition

For references, navigates to the actual definition of the attribute.

Show All References

Finds and highlights all references (groups that have ref="selectedGroup") to the selected group.

Go To Redefinition

If this group is redefined in the schema, navigates to the redefinition node.

Go To Original Definition

If this is a redefinition, navigates to the type definition.

See Also

Other Resources

XML Schema Explorer