Share via


external-parameter-entities Feature

 

This feature determines whether the SAX reader will include (true) or exclude (false) external parameter entities, including the external document type definition (DTD) subset.

This property has security implications. For more information, see MSXML Security Overview and SAX2 Security.

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/external-parameter-entities".

vBool
A VARIANT_BOOL value of true or false that indicates the value of the feature. If false, the SAX reader excludes external parameter entities, including the external document type definition (DTD) subset. If true, external parameter entities, including the external document type definition (DTD) subset, are included. The default value is false.

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