Compartilhar via


namespaces Feature

 

This feature determines whether the SAX reader does (true) or does not (false) make namespace URIs and local names available during various method callbacks.

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 "http://xml.org/sax/features/namespaces".

vBool
A VARIANT_BOOL value of true or false that indicates the value of the feature. If true, the SAX reader makes namespace URIs and local names available during various method callbacks. If false, namespace URIs and local names are not available during various method callbacks. The default value is true.

Remarks

When the SAX reader is actively parsing, this feature is limited to read-only access. Otherwise, if the SAX reader is not actively parsing, full (read/write) access is permitted.

Applies to

Interface: ISAXXMLReader

Method: putFeature | getFeature

Versioning

Implemented in: MSXML 3.0 and later