Working with XPath Queries

When you display the XPath Query Editor, an empty query is created for you. The query name, Query1, is displayed on a tab in the XPath Query Editor window.You can start typing the XPath expression on the first linein the editing pane; use the Enter key to move the cursor to a new line.

Tip

 

Line numbers are displayed in the editing pane if you have enabled them for XML documents. Click Tools > Options > General > Editor General to change this setting.

You can create up to sixty-four queries for a single document; each is given the name Query n, where n is a unique number incremented by one. You cannot name queries.

Queries are saved with the project. Changes you make - either to query expressions, or creating and deleting queries - are saved when you save the project, and not the document.

Executing the Query

To execute the query:
  • Click the Execute button on the XPath Query Editor tool bar ( ).

Stylus Studio processes the query and displays the result in the results pane.

Alternatives:

  • Press F5.

or

  • Right-click the query panel in the XPath Query Editor and select Execute Query from the short cut menu.

Creating a New Query

To create a new query:
  • Click the New XPath Query button on the XPath Query Editor tool bar ( ).

A new tab appears in the XPath Query Editor.

Alternative:

  • Right-click the query panel in the XPath Query Editor and select New XPath Query from the short cut menu.

Deleting a Query

To delete a query:
  • Click the Delete button on the XPath Query Editor tool bar ( ).

The tab associated with the query is removed from the XPath Query Editor. The query itself is deleted when you save the project.

Alternative:

  • Right-click the query panel in the XPath Query Editor and select New XPath Query from the short cut menu.

EDI Mapping

To transform EDI to XML, whether for X12 or EDIFACT, Stylus Studio provides the design tools and run-time support. EDIFACT, X12 and custom EDI formats can be translated, validated and mapped using the EDI Mapping adapter technology described here.

Converting Custom EDI Message Types to XML

Vital and valuable legacy data locked in proprietary EDI files? See how to use DataDirect XML Converters™ custom EDI message type tools to convert nonconformant EDI to XML.

Flat File to XML Mapper

Convert any flat file to XML in 3 clicks or less using the Stylus Studio Flat File to XML Mapper. Supports tons of different file encodings: UTF-8, UTF-16, US-ASCII, ISO-8859-1, and more.

DTD Validator

This page talks about Stylus Studio's DTD Validator it has the ability to specify any third-party XML parsers and validators, real-time syntax checking and DTD validation error reporting, backmapping, integrating third-party DTD validators and more!

Stylus Most Wanted

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.