Partager via


xmldecl-version Property

 

Returns the version declared in the header of the currently parsed XML 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-version".

strVal
A BSTR* string whose value is taken from the version 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 while the SAX reader is actively parsing an XML document.

Applies to

Interface: ISAXXMLReader

Method: putProperty | getProperty

Versioning

Implemented in: MSXML 3.0 and later