Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Controls whether the declarePrefix
method overwrites previously declared prefixes in the same local context.
JScript Syntax
var bolValue = objNSManager.allowOverride;
objNSManager.allowOverride = True;
Parameters
None.
Return Value
bolValue
A Boolean. The default value is True.
C/C++ Syntax
HRESULT putAllowOverride(
VARIANT_BOOL fOverride);
HRESULT getAllowOverride(
VARIANT_BOOL* fOverride);
Parameters
fOverride
[in]
A Boolean.
fOverride
[out,retval]
A Boolean. The default value is True.
Return Values
S_OK
Always S_OK.
E_POINTER
The value returned if the fOverride
value is NULL.
Remarks
When namespaces are declared in XML document processing, each element will start from pushContext(NULL)
, and each namespace declaration will result in declarePrefix(prefix,URI)
. In this case, you might want to prevent the same prefix from being overridden in the same element.
Versioning
Implemented in: MSXML 6.0.