Xml.XMLIntf.IXMLDocument.LoadFromStream
Delphi
procedure LoadFromStream(const Stream: TStream; EncodingType:
TXMLEncodingType = xetUnknown);
C++
virtual void __fastcall LoadFromStream(System::Classes::TStream* const Stream, TXMLEncodingType EncodingType = (TXMLEncodingType)(0x0)) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Xml.XMLIntf.pas Xml.XMLIntf.hpp |
Xml.XMLIntf | IXMLDocument |
Description
Loads an XML document from a stream and activates it.
Call LoadFromStream to load the XML document from a stream.
Stream is a stream object that can be used to read the string of XML that makes up the document.
EncodingType indicates the character set that is used for Stream. If EncodingType is xetUnknown (the default), LoadFromStream attempts to infer the encoding type from the XML encoding declaration at the beginning of the document.
After loading the document from Stream, LoadFromStream sets the Active property to true.