Partager via


disableOutputEscaping Property

 

Turns disableOutputEscaping on or off. When disableOutputEscaping is set to True, special symbols such as "&" are passed through literally. When disableOutputEscaping is set to False, special symbols (also known as built-in entities) such as & are escaped to &.

Visual Basic Usage Syntax

oMXXMLWriter.disableOutputEscaping = boolValue  
boolValue = oMXXMLWriter.disableOutputEscaping  

C/C++ Syntax

 [propput]  
HRESULT disableOutputEscaping (  
   [in] VARIANT_BOOL fValue);  
  
[propget]  
HRESULT disableOutputEscaping (  
   [out, retval] VARIANT_BOOL * fValue);  

Parameters

fValue
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

Read/write. The default value is False. When you try to output a special character such as "<" or "&", the special character will be escaped in the output file using the standard XML escaping mechanism. For example, by default, the MXXMLWriter writes the "&" symbol as "&" unless disableOutputEscaping is set to True. If disableOutputEscaping is set to True, MXXMLWriter does not escape the special symbol and writes the "&" symbol as the literal "&".

If this property is set to True, the XML output may not be well-formed or valid.

Value Description
True MXXMLWriter does not escape special symbols (passing them through as literals) when writing output.
False (default) MXXMLWriter escapes special symbols when writing output.

Versioning

Implemented in: MSXML 3.0 and later

Applies to

MXXMLWriter CoClass