NevronOpenVision
Nevron.Nov.Xml Namespace / NXmlDocument Class / SaveToStream Method / SaveToStream(Stream,NEncoding,Boolean,Boolean) Method
The stream to write to.
The encoding to use.
Determines whether to add a document declaration at the beginning.
Determines whether to indent elements or not.
In This Topic
    SaveToStream(Stream,NEncoding,Boolean,Boolean) Method
    In This Topic
    Saves this XML document to the given stream using the specified encoding.
    Syntax
    public System.bool SaveToStream( 
       System.IO.Stream stream,
       NEncoding encoding,
       System.bool addDocumentDeclaration,
       System.bool indentElements
    )

    Parameters

    stream
    The stream to write to.
    encoding
    The encoding to use.
    addDocumentDeclaration
    Determines whether to add a document declaration at the beginning.
    indentElements
    Determines whether to indent elements or not.

    Return Value

    True if the operation was successful, otherwise - false.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also