FIX: XML File Shows Cached Data When You Use ADO Recordset to Open the File over HTTP (293856)
The information in this article applies to:
- Microsoft XML 2.0
- Microsoft Data Access Components 2.1
- Microsoft Data Access Components 2.1 (GA)
- Microsoft Data Access Components 2.1 SP1
- Microsoft Data Access Components 2.1 SP2
This article was previously published under Q293856 SYMPTOMS
When you use the Open method of the ActiveX Data Objects (ADO) Recordset object to open an XML file over HTTP, if you make changes within the XML file, the data that appears does not contain the new modifications. In other words, the browser only displays the data that is cached from the first time you opened the XML file.
The same behavior occurs if you delete the XML file completely and run the same code. In this case, you do not receive an error message, and the browser displays the same data from the first time the XML file was opened.
CAUSE
The OpenURLBlockingStream method opens HTTP files. By default, this method always uses cached data if it is available. There is no way to customize this method.
RESOLUTION
To work around this problem, use a straight file path, for example:
rs.Open "c:\testdata.xml"
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
This bug was corrected in Microsoft XML (MSXML) 3.0 and Microsoft Data Access Components (MDAC) versions 2.5 or later.
Modification Type: | Major | Last Reviewed: | 5/8/2003 |
---|
Keywords: | kbbug kbDatabase kbfix kbMDAC250fix kbMDAC260fix kbMSXML300fix kbMSXMLnosweep KB293856 |
---|
|