Please enable JavaScript to view this site.

Altova XMLSpy 2022 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



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


© 2016-2022 Altova GmbH