Partager via


output Property

 

Determines the destination and the type of output for MXXMLWriter. By default, the output property is a BSTR (string) value.

Output for IMXWriter can be set as one of the following:

  • Any implementation of the IStream interface. (The resulting document will be written into the provided IStream.)

  • A string.

  • A DOMDocument object.

    For more information about setting the output property to a DOMDocument object, see Create a DOMDocument Object from SAX Events

Setting the output property to the empty value (VT_EMPTY or " ") will return output to the internal string and reset it.

Visual Basic Usage Syntax

oMXXMLWriter.output = varDestination  
varDestination = oMXXMLWriter.output  

C/C++ Syntax

 [propput]  
HRESULT output (  
   [in] VARIANT varDestination);  
  
 [propget]  
HRESULT output (  
   [out, retval] VARIANT * varDestination);  

Parameters

varDestination
The variant destination.

Return Values

S_OK
The value returned if no errors are reported.

Remarks

Read/write. Variant destination. The default is output to string.

Versioning

Implemented in: MSXML 3.0 and later

Applies to

MXXMLWriter CoClass

See Also

Create a DOMDocument Object from SAX Events
IMXWriter Interface
MXHTMLWriter CoClass