Discuss this help topic in SecureBlackbox Forum

TElXMLDOMDocument.LoadFromStream

TElXMLDOMDocument     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Reads the XML document from the stream and parses it.

Declaration

[C#/Java]
    void LoadFromStream(System.IO.Stream aStream);
    void LoadFromStream(System.IO.Stream aStream, string DefaultEncoding, bool NormalizeNEL);
    void LoadFromStream(System.IO.Stream aStream, bool OwnStream, short DataToLoad);
    void LoadFromStream(System.IO.Stream aStream, bool OwnStream, short DataToLoad, string DefaultEncoding, bool NormalizeNEL);

[VB.NET]
    Sub LoadFromStream(ByVal aStream As System.IO.Stream)
    Sub LoadFromStream(ByVal aStream As System.IO.Stream, ByVal DefaultEncoding As String, ByVal NormalizeNEL As Boolean)
    Sub LoadFromStream(ByVal aStream As System.IO.Stream, ByVal OwnStream As Boolean, ByVal DataToLoad As Short)
    Sub LoadFromStream(ByVal aStream As System.IO.Stream, ByVal OwnStream As Boolean, ByVal DataToLoad As Short, ByVal DefaultEncoding As String, ByVal NormalizeNEL As Boolean)

[Pascal]
    procedure LoadFromStream(Stream : TStream);
    procedure LoadFromStream(Stream : TStream; const DefaultEncoding : string; NormalizeNEL : boolean = False);
    procedure LoadFromStream(AStream : TStream; OwnStream : boolean; DataToLoad : TElXMLDelayLoadMode);
    procedure LoadFromStream(AStream : TStream; OwnStream : boolean; DataToLoad : TElXMLDelayLoadMode; const DefaultEncoding : string; NormalizeNEL : boolean = False);

[C++]
    void LoadFromStream(TStream &aStream);
    void LoadFromStream(TStream *aStream);
    void LoadFromStream(TStream &aStream, const std::string &DefaultEncoding, bool NormalizeNEL);
    void LoadFromStream(TStream *aStream, const std::string &DefaultEncoding, bool NormalizeNEL);
    void LoadFromStream(TStream &aStream, bool OwnStream, TElXMLDelayLoadMode DataToLoad);
    void LoadFromStream(TStream *aStream, bool OwnStream, TElXMLDelayLoadMode DataToLoad);
    void LoadFromStream(TStream &aStream, bool OwnStream, TElXMLDelayLoadMode DataToLoad, const std::string &DefaultEncoding, bool NormalizeNEL);
    void LoadFromStream(TStream *aStream, bool OwnStream, TElXMLDelayLoadMode DataToLoad, const std::string &DefaultEncoding, bool NormalizeNEL);

[PHP]
    void LoadFromStream(TStream $aStream)
    void LoadFromStream(TStream $aStream, string $DefaultEncoding, bool $NormalizeNEL)
    void LoadFromStream(TStream $aStream, bool $OwnStream, integer $DataToLoad)
    void LoadFromStream(TStream $aStream, bool $OwnStream, integer $DataToLoad, string $DefaultEncoding, bool $NormalizeNEL)

Parameters

  • Stream (AStream) - The stream from which the document is loaded.
  • OwnStream - If this parameter is False than the stream shouldn't be closed until the XML document object is alive.
  • DataToLoad - Specifies which data must be loaded.
  • DefaultEncoding - Specifies default encoding for the data to be loaded
  • NormalizeNEL - (Normalize NEw Line). This parameter is used to change the end-of-line characters.
  • aStream - ...

Data types that can be loaded:


Description

    Use this method to read the XML document from the stream. The encoding is determined and handled automatically, or set via the DefaultEncoding parameter.
Note that the Stream can be closed by user after method completion.

See also:     SaveToStream    

Discuss this help topic in SecureBlackbox Forum