How Grid Changes Affect the XML Document

When you make a change to the document structure or content on the Grid tab, those changes are reflected immediately in the underlying XML document. You can see your changes affect the document on the Text tab.

Consider the following excerpt from books.xml.

<authors>
               
	<author>David A. Chappel</author>
               
	<author>Tyler Jewell</author>
               
</authors>
               

            

If you move the rows in the authors table, for example, as shown in Figure 133,

Figure 133. Moving a Row Affects XML

the underlying XML changes accordingly:

<authors>
               
	<author>Tyler Jewell</author>
               
	<author>David A. Chappel</author>
               
</authors>
               

            

Types of Changes that Affect the Document

The following changes, all of which can be made using Grid tab, affect the underlying XML document:

  • Adding, deleting, reordering rows
  • Adding, deleting, reordering, and renaming columns
  • Adding, deleting, reordering, and sorting tables
  • Changing element and attribute values
  • Renaming container elements

Changes you make affect the current instance only. For example, in the example shown in Figure 133, only that instance of the nested table is affected. If you add a column to books/book, however, every instance of books/book gets that new column.

 
Free Stylus Studio XML Training: