Hi, everybody, I blocked by the _Shutdown function. Here is the detail info: I found the _Shutdown function in Infopath 2003, currently I can use this function to show a message box before the infopath file closed. But, when I tryed to access data node using this.thisXDocument.DOM.selectSingleNode("...