Home >Online Product Documentation >Table of Contents >XPath Query Editor
XPath Query Editor
You use the XPath Query Editor to compose and execute queries against the active XML document. If the XPath Query Editor is not visible, select View > XPath Query Editor from the Stylus Studio menu, or click the Show XPath Query Editor button on the XML Editor tool bar (
).
The XPath Query Editor consists of
- A querypane, in which you enter the XPath you want to execute against the current document
- A resultspane, which shows the results from the query after you execute it. Results are shown as a number of hits and include the type of XML tag and value of each hit. When you click on a returned node, Stylus Studio moves the cursor in the XML document to the source node for the returned node.
- A namespacepane, which allows you to redefine the namespace prefix to be used in the query. The namespace pane is not displayed by default.
You can create up to sixty-four queries for a single XML document; each is saved on its own tab, which appears at the top of the query pane. To see a different query, click the appropriate tab. To delete a query, click the Delete Query button.
Tool Bar
New XPath Query creates a new query tab in the XPath Query Editor.
Execute Query executes the current query in the XPath Query Editor.
Open result in a new XML document creates a new XML document based on the query result and displays it in the XML Editor.
Show Namespaces displays the namespace pane, which allows you to redefine the namespace prefix to be used in the query.
Delete Query deletes the current query from the XPath Query Editor.
For More Information
Using the XPath Query Editor
Querying XML Documents Using XPath