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
Visual Basic Usage Syntax
oMXXMLWriter.indent = boolValue
boolValue = oMXXMLWriter.indent
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
Read/write. A Boolean expression (True/False) specifying whether the feature is on or off.
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:
Setting this property at run time is not implemented. To control indentation in XSLT processor output, you must use the
<xsl:output>
element within a XSLT style sheet assigned to the processor.When read, returns the setting (either True or False) that was set using the
<xsl:output>
element in the XSLT style sheet assigned to the processor. If the output method is HTML, then the default setting is VARIANT_TRUE. If the output method is XML, then the default setting is VARIANT_FALSE. Note that if the output method is unspecified, the processor cannot know until run time what the true setting will be. Therefore, the probable default will be VARIANT_FALSE.
Versioning
Implemented in: MSXML 3.0 and later