TXmlScanner

OnXmlProlog

TXmlPrologEvent = PROCEDURE (Sender : TObject; XmlVersion, Encoding: STRING; Standalone : BOOLEAN) OF OBJECT;
PROPERTY OnXmlProlog : TXmlPrologEvent READ FOnXmlProlog WRITE FOnXmlProlog;

Is called when the Execute method has parsed the XML prolog.

Parameters

Sender The TXmlScanner instance which triggers the event
XmlVersion The XML version number specified in the prolog. The current version of XML is 1.0
Encoding The character encoding specified in the prolog. There are a lot of possible values here. Usual values are: UTF-8, ISO-8859-1. You can assume UTF-8 if there is no encoding specified by the prolog.
Standalone True if there is a standalone='yes' in the prolog. Please refer to the XML spec for an exact definition of the standalone declaration.

See also

Execute