RTML.ToXmlStream() Method

.NET only Generate the RTML (XML) represented by the object model and write to the given stream

Syntax

RTML.ToXmlStream(Stream, IncludeDocHeader, Encoding, EOLType)

The method syntax has these parts:

Part Description
Stream (System.IO.Stream) The Stream to which the RTML will be written
IncludeDocHeader (Boolean) True to include the <?xml version="1.0" ?> header as required to make it a full XML document instead of a snippet.
Encoding (System.Text.Encoding) The type of encoding to use when formatting the RTML/XML (UTF8, etc.)
EOLType (LiquidTechnologies.Runtime.NET35.EOLType) Indicates the line endings to use, EOLType.CRLF (default), EOLType.CR (Mac), or EOLType.LF (*nix)
Return (Nothing) Does not return a value.

Remarks

Will raise an exception if the RTML within the object is not valid, i.e. invalid number of entries in a collection.

Symbolic Constants

The (symbolic) values for LiquidTechnologies.Runtime.NET35.EOLType are:

Constant Value Description
CRLF 0 Internet/Windows standard
LF 0 Unix standard only