XML Editor Grid Tab

 

The XML editor Grid tab is available only in Stylus Studio XML Professional Edition.

The Grid tab of the XML Editor is a useful way to view and work with an XML document that contains structured data - multiple instances of the same type of element.

The Grid tab consists of a tool bar and a display area. The tool bar has buttons to perform actions and operations on both the grid itself and on the underlying XML document represented in the grid. An example of the former is the ability to show the child elements of the document's root element; they are hidden by default. An example of the latter is the ability to add a new instance of an element or to change a value. These operations are also accessible from the XML > Grid Editing menu, as well as from the grid shortcut menu (right-click on the grid).

The tool bar also includes a query field, which allows you to enter an XPath expression to query the XML document. Results are displayed in the Query Output window, which appears when you run the query if it is not already displayed. See Querying XML Documents Using XPath for more information on this feature.

The display area shows the XML document, both its structure and content, rendered in a tabular, or grid format.

Fields

Query

Type a query that you want to run on the XML document shown in the Grid tab. Click Refresh Query to run the query. Stylus Studio displays the results of the query in the Query Output window. Click the down arrow to select a previously defined query or define a new query. Queries can be evaluated using either XPath 1.0 ( )or XPath 2.0 ( )by clicking the appropriate button.

Buttons

Insert Row Before - Inserts a new row before the current row.

Insert Row After - Inserts a new row after the current row.

Delete Row - Deletes the current row.

Move Up - Moves the currentl row or table up in the diagram.

Move Down - Moves the current row or table down in the diagram.

Add Nested Table - Adds a nested table under the current row.

Add Attribute Column - Adds an attribute column to the current row.

Add Element Column - Adds an element column to the current row.

Rename Column - Allows you to rename the current column.

Delete Column - Deletes the current column.

Sort Ascending- Sorts the current column in ascending order.

Sort Descending - Sorts the current column in descending order.

For More Information

Updating XML Documents Using the Grid

 
Free Stylus Studio XML Training: