Altova XMLSpy 2024 Enterprise Edition

Properties

Count

Item

 

Methods

NewAuthenticFile

NewFile

NewFileFromText

OpenAuthenticFile

OpenFile

OpenURL

OpenURLDialog

 

 

Description

This object represents the set of documents currently open in XMLSpy. Use this object to open further documents or iterate through already opened documents.

 

Examples

' ---------------------------------------

' XMLSpy scripting environment - VBScript

' iterate through open documents

' ---------------------------------------

Dim objDocuments

Set objDocuments = Application.Documents

 

For Each objDoc In objDocuments

 'do something useful with your document

 objDoc.SetActiveDocument()

Next

 

// ---------------------------------------

// XMLSpy scripting environment - JScript

// close all open documents

// ---------------------------------------

for (var iter = new Enumerator (Application.Documents);

    ! iter.atEnd();

    iter.moveNext())

{

 // MsgBox ("Closing file " + iter.item().Name);

 iter.item().Close (true);

}

© 2017-2023 Altova GmbH