TXmlScanner

OnPI

TPIEvent = PROCEDURE (Sender : TObject; Target, Content: STRING; Attributes : TAttrList) OF OBJECT;
PROPERTY OnPI : TPIEvent READ FOnPI WRITE FOnPI;

Is called whenever the Execute method has parsed a Processing Instruction (PI).

A PI can have any format after the target. It is a common practice to specifiy "pseudo" attributes like the ones in start tags. For this, you get passed a list of attributes here, which is of course only valid and useable if the PI contains pseudo attributes.

Parameters

Sender The TXmlScanner instance which triggers the event
Target The PI target name
Content The content of the PI, not including the target name and the final ?>
Attributes Pseudo attributes

See also

Execute