Partager via


xmldecl-encoding Property

 

Specifies the encoding declared in the XML header of the currently parsed document.

JScript Syntax

oSaxReader.putProperty(strProp, strVal);  
strVal= oSaxReader.getProperty(strProp);  

Visual Basic Syntax

oSaxReader.putProperty
(strProp, strVal)  
strVal= oSaxReader.getProperty
(strProp)  

C/C++ Syntax

HRESULT putProperty(BSTR strProp, VARIANT strVal);  
HRESULT getProperty(BSTR strProp, VARIANT* strVal);  

Value

strProp
A BSTR string whose value is "xmldecl-encoding".

strVal
A BSTR* string whose value is taken from the encoding attribute as declared in the XML header of the currently parsed document. If there is no XML declaration found in the document being parsed, its value remains empty.

Remarks

This property is limited to read-only access. Its data is only available after the SAX reader parses the XML document header.

Applies to

Interface: ISAXXMLReader

Method: putProperty | getProperty

Versioning

Implemented in: MSXML 3.0 and later