The starting point for every application which uses the Application API is the Application object. This object contains general methods like import/export support and references to the open documents and any open project.
The Application object is created differently in various programming languages. In scripting languages such as JScript or VBScript, this involves calling a function which initializes the application's COM object. For examples, see the Programming Languages section.
The picture below shows the links between the main objects of the Application API:
The application object consists of the following parts:
|1.||Document collection and reference to the active document.|
|2.||Reference to current project and methods for creating and opening projects.|
|3.||Methods to support the export to and import from databases, text files, and Word documents.|
|5.||Methods for macro menu items.|
Once you have created an Application object you can start using the functionality of XMLSpy. In most cases, you either open a project and access the documents from there or you directly open a document via the Documents interface.
© 2019 Altova GmbH