RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLDocument.LoadFromStream Method

Loads an XML document from a stream and activates it.

Pascal
procedure LoadFromStream(const Stream: TStream; EncodingType: TXMLEncodingType = xetUnknown);
C++
__fastcall LoadFromStream(const TStream Stream, TXMLEncodingType EncodingType = xetUnknown);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!