xml spy
Previous  Top  Next
Row operations

Repeatable elements can be created within an XML Document. This is made possible by the specific schema file to which the XML file is assigned. The WYSIWIG environment allows you to manipulate rows and their data, individually.

An XML row may be implemented by an HTML table, but this need not always be the case. The XSLT Designer *.SPS file defines the HTML page layout. While editing XML data, an external script performs the row operations (on each row individually).

If an external script is to perform row operations then two steps must occur:
·The first step checks whether the cursor is currently in a row using a property. E.g. IsRowInsertEnabled, which returns a TRUE or FALSE value.  
·If the return value is TRUE then the row method can be called. E.g. RowAppend, which has no parameters and returns no value.  

The following is a list of properties and methods available that perform table operations. Each of the properties return a BOOL and each of the methods have no parameters.

IsRowInsertEnabled, RowInsert:      Row insertion operation.
IsRowAppendEnabled, RowAppend:      Append row operation.
IsRowDeleteEnabled, RowDelete:      Delete row operation.
IsRowMoveUpEnabled, RowMoveUp:      Move the XML data up one row location.
IsRowMoveDownEnabled, RowMoveDown:   Move the XML data down one row location.
IsRowDuplicateEnabled, RowDuplicate:   Duplicate the currently selected XML row.


Previous  Top  Next

⌐ 2002 Altova