Share via


forced-resync Feature

 

This feature determines whether the SAX reader will request (true) or not request (false) servers to forcibly resynchronize the document each time it is parsed.

JScript Syntax

oSaxReader.putFeature(strFeature, vBool);  
vBool= oSaxReader.getFeature(strFeature);  

Visual Basic Syntax

oSaxReader.putFeature
(strFeature, vBool)  
vBool= oSaxReader.getFeature
(strFeature)  

C/C++ Syntax

HRESULT putFeature(BSTR strFeature, VARIANT vBool);  
HRESULT getFeature(BSTR strFeature, VARIANT* vBool);  

Value

strFeature
A BSTR string whose value is "forced-resync".

vBool
A VARIANT_BOOL value of true or false. If this feature is true, the SAX reader requests that servers not cache the document. The default is true.

Remarks

When you load and parse an XML document from a URL that is not local (i.e. is on a different web site), that document may be cached by any number of servers on the line. If you are parsing an XML document that changes often, and it is important that your parser always retrieves the latest version of the document, you can set this property to true. When you set this property to true, it causes the XML document to not be cached; instead it is retrieved from its source server each time that you reparse the document.

Applies to

Interface: ISAXXMLReader

Method: putFeature | getFeature

Versioning

Implemented in: MSXML 3.0 and later