Documents
Properties
Methods
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);
}