xml spy
Previous  Top  Next
Editing operations

When XML data is displayed as HTML data, it is possible to manipulate individual elements using standard editing operations cut, copy and paste.

Not all XML data elements can be edited however, and it is therefore necessary first to test if editing is possible. This is achieved in the same way as row operations, starting with a property to test editing capabilities and then calling the method to perform the editing operation.

The only method that does not have a test is the method EditSelectAll, which automatically selects all elements displayed in the document. The following is a list of properties and methods available that perform editing operations. Each of the properties returns a BOOL and each of the methods have no parameters.

IsEditUndoEnabled, EditUndo
Undo an editing operation
IsEditRedoEnabled, EditRedo:
Redo an editing operation
IsEditCopyEnabled, EditCopy
Copy the selected text to the Windows clipboard
IsEditCutEnabled, EditCut
Cut the selected text to the Windows clipboard
IsEditPasteEnabled, EditPaste
Paste the Windows clipboard text to the current cursor position
IsEditClearEnabled, EditClear
Clear the selected text from the XML document



Previous  Top  Next

⌐ 2002 Altova