Please enable JavaScript to view this site.

Altova XMLSpy 2020 Professional Edition

Grid View (screenshot below) shows the hierarchical structure of XML documents and DTDs through a set of nested containers, that can be easily expanded and collapsed to get a clear picture of the document's structure. In Grid View contents and structure can both be easily manipulated.


A hierarchical item (such as the XML declaration, document type declaration, or element containing child elements) is represented with a gray bar on the left side containing a small upwards-pointing arrow at the top. Clicking the side bar expands or collapses the item. An element is denoted with the ic_elementicon, an attribute with the ic_attrib icon.


Display and navigation


The contents of an item depend on its kind. For example, in the case of elements, the contents will typically be attributes, character data, comments, and child elements. Attributes are always listed and are ordered as in the input file. Following the attributes, items appear exactly in the order found in the source file. This order can be changed using drag-and-drop, and the change will also be implemented in the source data.

If an element contains only character data, the data will be shown in the same line as the element and the element will not be considered hierarchical by nature. The character data for any other element will be shown indented with the attributes and potential child elements and will be labeled as "Text".

If an element is collapsed, its attributes and their values are shown in the same line in gray. This attribute preview is especially helpful, when editing XML documents that contain a large number of elements of the same name that differ only in their contents and attributes (for example, database-like applications).

The arrow keys move the selection bar in the grid view

The + and – keys on the numeric keypad allow you to expand and collapse items.


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 ic_opt_widths.

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.


Intelligent editing

Grid View enables intelligent editing when the XML document is based on a schema. See Editing in Grid View for details. The Entry Helpers used in Grid View are described below.


Grid View tables

Grid View allows you to display recurring elements in a table (Grid View tables). This function is available for any type of XML file: XML, XSD, XSLT, etc.


© 2020 Altova GmbH