Altova XMLSpy 2025 Professional Edition 

Event: OnBeforeCloseDocument(objDocument as Document)as Boolean

 

XMLSpy scripting environment - VBScript:

Function On_BeforeCloseDocument(objDocument)

 ' On_BeforeCloseDocument = False  ' to prohibit closing of document

End Function

 

XMLSpy scripting environment - JScript:

function On_BeforeCloseDocument(objDocument)

{

 // return false;  /* to prohibit closing of document */

}

 

XMLSpy IDE Plugin:

IXMLSpyPlugIn.OnEvent (28, ...)        // nEventId = 28

 

Description

This event gets fired on any attempt to close a document. To prevent the document from being closed return false.

 

© 2018-2024 Altova GmbH