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 121,

Figure 121. 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 121, 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.

Key Benefits of DataDirect XML Converters

Learn how DataDirect XML Converters were created to maximize XML developer productivity, push innovation, and provide unquestioned value.

Manufacturing

Manufacturing

Using DataDirect XML Converters

Learn how to use DataDirect XML Converters and the Stylus Studio Java Code Generator to deploy the XQuery applications you build in Stylus Studio to a live server environment.

EXSLT Tools

EXSLT support in Stylus Studio lets you extend XSLT 1.0 stylesheets and simplify many tasks including computing dates and times, performing mathematical computations, string manipulations and more.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member