Macros Imprimer cette rubrique Page précédente Un niveau supérieur Page suivante

Accueil >  Programmers' Reference > Scripting Editor >


Macros automate repetitive or complex tasks. In the Scripting Environment, you can create a script that calls application functions as well as custom functions that you have defined. This flexibility provides you with a powerful method of automating tasks within XMLSpy. This section about macros is organized as follows:


Creating and Editing a Macro describes how to create a new macro and edit an existing one.
Running a Macro explains how a macro can be run from the Scripting Editor and from the broader XMLSpy environment as well.
Debugging describes how macros can be debugged.



Key points about macros

Given below is a summary of important points about macros.


Any number of macros can be added to the active scripting project. These macros are saved in the Altova Scripting Project file (.asprj file).
Functions that are used in a macro can be saved as a Global Declaration. All Global Declarations are also saved in the Altova scripting project file (.asprj file).
The macro can be tested by running it from within the Scripting Editor, and it can be debugged from within the Scripting Editor.
XMLSpy can have one global Scripting Project, and a second scripting project, assigned to the currently loaded project, active at any one time; the macros are available to both of them. See Running a Macro for details.


© 2018 Altova GmbH