Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keeping DOM data in memory after procedure (VB)

Status
Not open for further replies.

innmedia

Programmer
Mar 24, 2000
108
US
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.
 
Declare your variable which stores the xml data (Domdocument object) in the general declarations section of your program.

Jordi Reineman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top