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

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.

Note   The indent property has a special effect on white space processing when writer output is specified as a DOMDocument object. For more information, see Create a DOMDocument Object from SAX Events.
[Visual Basic]

Implementation Syntax

Property Let IMXWriter_indent(ByVal RHS As Boolean)
Property Get IMXWriter_indent() As Boolean

Usage Syntax

oMXXMLWriter.indent = boolValue
boolValue = oMXXMLWriter.indent

Remarks

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

[C/C++]

Syntax

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

Parameters

fIndentMode
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 of this property depends on the implementation. There is no way to detect white space inside an internal document type definition (DTD). Therefore, DTDs are always indented.

Value Description
True Provide white space for formatting.
False No additional indenting requirement.

The XSLProcessor object implements the indent property as follows:

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

See Also

MXHTMLWriter CoClass | MXXMLWriter CoClass

Applies to: IMXWriter Interface