Click to See Complete Forum and Search --> : asynchronous loading?


garumphul
August 10th, 2001, 05:36 AM
I've got to process a number of large (quite possibly over a megabyte) XML files. I'm using the Microsoft XML parser version 3, in Visual C++.

Now, what I want to do prioritize the order in which I process them by checking an attribute in the root node. Loading the files across the network is relatively slow, and I will need to check a number of large files.

Obviously, I don't want to load a *whole* megabyte XML file just to check the first tag.

I know that the MSXML parser lets you set an "asyncronous" property, but once I've done that, how do I verify that there is sufficient data available for me to check the tag? And once I've finished checking this one tag, how do I tell the DOM to *stop* loading? Do I just release the pointer?

Thanks in advance.