byteOrderMark Property

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SAX2 Reference

byteOrderMark Property

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

Remarks

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

[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

The default is True. MXHTMLWriter never outputs 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.

To view reference material for Visual Basic or C++ only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

IMXWriter Interface | MXXMLWriter CoClass

Applies to: MXHTMLWriter CoClass