allowOverride Property
Controls whether the declarePrefix()
method overwrites previously declared prefixes in the same local context.
[Script]
Script Syntax
var bolValue = objNSManager.allowOverride; objNSManager.allowOverride = True;
Parameters
None.
Return Value
- bolValue
- A Boolean. The default value is True.
[Visual Basic]
Visual Basic Syntax
bolValue = objNSManager.allowOverride; objNSManager.allowOverride = True;
Parameters
None.
Return Value
- bolValue
- A Boolean. The default value is True.
[C/C++]
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.
C/C++ 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.
To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button in the upper-left corner of the page.
See Also
[Script,Visual Basic]
Applies to: IVBMXNamespaceManager
[C/C++]
Applies to: IMXNamespaceManager