|
Home > Online Product Documentation > Table of Contents > Features of the Grid Tab Features of the Grid TabThis section describes the features of the Grid tab. It covers the following topics: Expanding and Collapsing Nodes
When you first display a document in the
Grid tab, the document is collapsed so that it shows just the root element (here it is
A plus sign displayed to the left of the node name indicates that this node has child nodes. You can click the plus sign to display a subgrid that displays the child nodes, as shown in Figure 128.
You can continue to drill down in this fashion to view all values. To expand a node, click the plus sign ( ).Collapsing Empty Nodes
Some nodes in a document are simply containers - they have no content of their own. An example of a container node is the
To streamline the display, Stylus Studio hides the tables that represent container nodes. Information about container nodes is displayed in the child node's header.
Figure 129 shows the default display for the
If you want, however, you can display the tables associated with container nodes, as shown in Figure 130.
The table associated with the
To display container nodes, click Simplified View ( ).This action is also available from the XML > Grid Editing menu and from the grid shortcut menu. Renaming NodesYou can rename container nodes directly in the grid. To rename a node:
1. Double-click the header that represents the node you want to rename.
The node name is selected.
2. Type the name you want to use for the node.
3. Press Enter (or click elsewhere in the grid or grid background).
Resizing ColumnsWhen you expand a node, Stylus Studio displays it in uniform columns. You can resize columns to any width you prefer by dragging the handle on the right side of the column header, as shown in Figure 131.
To resize a column, drag the handle on the right side of the column header.Showing Row Tag Names
In the grid view of a structured XML document, each child element of a node corresponds to a row in a table. For example, the
If you want, you can display the tag name for child elements in their own columns, as shown in Figure 132.
To toggle the display child element names, click Toggle Row Tag Name ( ).This action is also available from the XML > Grid Editing menu. |