Hi,
I have a VB app which uses the MSXML parser. There are several routines throughout the application. I find that I can't load the XML file once at the start, but need to load it in each routine.
In other words, I use this code:
xmlobj.async = False
xmlobj.Load xml_file
at the beginning of each event procedure (button click or whatever). It seems the data does not stay in memory after the procedure ends. If I don't reload it, the routines do not see the data.
I would have thought it stays in memory throughout the application, but apparantly only stays in memory during the life of each procedure.
Anyone run across thie problem? Is there a way of persisting the data? I am unaware of way to do this? I do not wish to turn it into an ADO recordset.
I have a VB app which uses the MSXML parser. There are several routines throughout the application. I find that I can't load the XML file once at the start, but need to load it in each routine.
In other words, I use this code:
xmlobj.async = False
xmlobj.Load xml_file
at the beginning of each event procedure (button click or whatever). It seems the data does not stay in memory after the procedure ends. If I don't reload it, the routines do not see the data.
I would have thought it stays in memory throughout the application, but apparantly only stays in memory during the life of each procedure.
Anyone run across thie problem? Is there a way of persisting the data? I am unaware of way to do this? I do not wish to turn it into an ADO recordset.