encoding Property
Sets and gets encoding for the output.
Visual Basic Implementation Syntax
Property Let IMXWriter_encoding(ByVal RHS As String)
Property Get IMXWriter_encoding() As String
Visual Basic Usage Syntax
oMXXMLWriter.encoding = strValue
strValue = oMXXMLWriter.encoding
C/C++ Syntax
[propput]
HRESULT encoding (
[in] BSTR strEncoding);
[propget]
HRESULT encoding (
[out, retval] BSTR * strEncoding);
Parameters
strEncoding
The BSTR used to identify encoding.
Return Values
S_OK
The value returned if no errors are reported.
Remarks
String. Read/write. The default string is dependent on implementation. Microsoft® Visual Basic® strings are always UTF-16 encoded.
The encoding
property has no effect for BSTR or DOM output.
The XSLProcessor
object implements the encoding
property as follows:
When set, its value overrides the encoding that will be used when serializing the XSLT result tree.
When read, its value is the encoding that will be used to serialize the XSLT result tree. If the style sheet does not specify an encoding, the default encoding of "UTF-16" is returned.
Versioning
Implemented in: MSXML 3.0 and later