indent Property


Sets whether to indent output. When set to True, this property requires output to be indented (or "pretty printed") to reflect the nesting structure of the document.

Visual Basic Usage Syntax

oMXXMLWriter.indent = boolValue  
boolValue = oMXXMLWriter.indent  

C/C++ Syntax

HRESULT indent (  
   [in] VARIANT_BOOL fIndentMode);  
HRESULT indent (  
   [out, retval] VARIANT_BOOL * fIndentMode);  


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

Return Values

The value returned if no errors are reported.


Boolean. Read/write. The general rules of indentation are: XML headers and root elements start on a new line with a zero indent; element content, including leading and trailing white spaces, is not changed in any way.


Implemented in: MSXML 6.0

Applies to

MXHTMLWriter CoClass

See Also

IMXWriter Interface
MXXMLWriter CoClass