Altova XMLSpy 2023 Enterprise Edition

Grid View is available for XML documents, JSON documents, and DTDs. (The screenshot below is of the Grid View of an XML document.) Grid View shows the hierarchical structure of the document through a set of nested containers. These can be easily expanded and collapsed to get a clear picture of the document's structure. As a result, in Grid View, both contents and structure can be easily edited.

Click to expand/collapse

For details about how to work in Grid View, see the following sections:


XML in Grid View

JSON Grid View



Scroll headers

As you scroll down an XML, JSON, or DTD document in Grid View and the top-level node goes out of the view window, a header bar appears at the top of Grid View and shows that top-level node. As you scroll further down, more ancestor elements of the node currently at the top of the view window will be displayed in the header bar. For example, in the screenshot below, the ancestors of the /Company/Person[1]/@Programmer node are displayed in the header bar.


If you click any one of the nodes in the header bar, then that node will be selected and displayed in the view window.


Customizing Grid View


To resize columns, place the cursor over the appropriate border and drag so as to achieve the desired width.

To resize a column to the width of its largest entry, double-click on the grid line to the right of that column.

To adjust column widths to display all content, select the menu item View | Optimal widths command, or click on the Optimal Widths icon in the Grid View toolbar.

The heights of cells are determined by their contents. They can be adjusted with the menu option Tools | Options | View | Enhanced Grid View, "Limit cell height to xx lines".


Note:If you mark data in Grid View and switch to Text View, that data will be marked also in Text View.


© 2016-2022 Altova GmbH