xml spy
Previous  Top  Next
Object model

The starting point for every application which uses the XMLSpy API is the "Application" object. This object contains general methods like import/export support and references to the open documents and any open project.

To create an instance of the Application object, call CreateObject("XMLSpy.Application") from VisualBasic or a similar function from your preferred development environment to create a COM object. There is no need to create any other objects, to use the complete XMLSpy API (It is in fact not even possible). All other interfaces are accessed through other objects with the Application object as the starting point.

The picture below shows you the links between the main objects of the XMLSpy API:
   api_documents

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 of projects.  
 
3.Methods to support the export to and import from databases, text files and Word documents.  
 
4.URL management.  
 
5.Methods for macro menu items.  

Once you have created an Application object you can start using the functionality of XMLSpy. Most of the times you either open a project and access the documents from there or you directly open a document via the "Documents" interface.

Previous  Top  Next

⌐ 2002 Altova