Xml.XMLDoc.TXMLDocument.LoadFromStream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure LoadFromStream(const Stream: TStream; EncodingType:  TXMLEncodingType = xetUnknown);

C++

void __fastcall LoadFromStream(System::Classes::TStream* const Stream, Xml::Xmlintf::TXMLEncodingType EncodingType = (Xml::Xmlintf::TXMLEncodingType)(0x0));

Properties

Type Visibility Source Unit Parent
procedure
function
public
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc TXMLDocument

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.

See Also

Code Examples