Compartilhar via


byteOrderMark Property

 

[This feature was first implemented for MSXML 4.0.]

Determines whether to write the Byte Order Mark (BOM) to the MXHTMLWriter output. Setting the byteOrderMark property to False prohibits the MXHTMLWriter from putting the Byte Order Mark (BOM) into the resulting HTML document.

Visual Basic Usage Syntax

oMXXMLWriter.byteOrderMark = boolValue  
boolValue = oMXXMLWriter.byteOrderMark  

C/C++ Syntax

 [proput]  
HRESULT byteOrderMark (  
   [in] VARIANT_BOOL fWriteByteOrderMark);  
  
[propget]  
HRESULT byteOrderMark (  
   [out, retval] VARIANT_BOOL * fWriteByteOrderMark);  

Parameters

fWriteByteOrderMark
A Boolean expression (True/False) specifying whether the feature is on or off.

Return Values

S_OK
The value returned if no errors are reported.

Remarks

Boolean. Read/write. The default is True. MXHTMLWriter never generates a BOM if the output is set to a string.

Value Description
True MXHTMLWriter follows HTML 4.0 specifications and outputs BOM for encoding.
False MXHTMLWriter does not write the BOM into the resulting HTML output.

Versioning

Implemented in: MSXML 4.0 and later

Applies to

MXHTMLWriter CoClass

See Also

IMXWriter Interface
MXXMLWriter CoClass